Skip to content

Commit

Permalink
Security fix: Removes a XSS vulnerability
Browse files Browse the repository at this point in the history
The User Searches page had a XSS vulnerability.
  • Loading branch information
msaari committed Oct 19, 2021
1 parent 3ff03c7 commit 4a8168c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/user-searches.php
Expand Up @@ -336,7 +336,7 @@ function relevanssi_date_queries( string $from, string $to, string $version = 'g
if ( function_exists( 'relevanssi_insights_link' ) ) {
$query_link = relevanssi_insights_link( $query );
} else {
$query_link = $query->query;
$query_link = wp_kses( $query->query, 'strip' );
}

if ( 'good' === $version ) {
Expand All @@ -347,7 +347,7 @@ function relevanssi_date_queries( string $from, string $to, string $version = 'g
<td style='padding: 3px 5px; text-align: center'>%d</td>
<td style='padding: 3px 5px; text-align: center'>%s</td>
</tr>",
$query_link, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$query_link, // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
esc_attr( $query_url ),
intval( $query->cnt ),
intval( $query->hits ),
Expand Down

0 comments on commit 4a8168c

Please sign in to comment.