Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Last active August 26, 2015 15:15
Show Gist options
  • Save strangerstudios/1a9c74bf2af8ce4945bd to your computer and use it in GitHub Desktop.
Save strangerstudios/1a9c74bf2af8ce4945bd to your computer and use it in GitHub Desktop.
Memberlite 2.0.3 XSS Patch
//line 305 of inc/extras.php
//change:
elseif(is_search())
{
?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'memberlite' ), '<span>' . esc_attr(get_search_query()) . '</span>' ); ?></h1>
<?php
}
//to:
elseif(is_search())
{
global $s;
?>
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'memberlite' ), '<span>' . $s . '</span>' ); ?></h1>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment