Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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