Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11 from jsgm/master
Fixed Self-XSS for unescaped User-Agent
  • Loading branch information
lesterchan committed Nov 25, 2021
2 parents 048e3b9 + 514ff46 commit 13e0b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ban-options.php
Expand Up @@ -269,7 +269,7 @@ function toggle_checkbox() {
</tr>
<tr>
<td><?php _e('User Agent', 'wp-ban'); ?>:</td>
<td><strong><?php echo $_SERVER['HTTP_USER_AGENT']; ?></strong></td>
<td><strong><?php echo (!isset($_SERVER["HTTP_USER_AGENT"]) ? __('Unknown', 'wp-ban') : esc_html($_SERVER['HTTP_USER_AGENT'])); ?></strong></td>
</tr>
<tr class="alternate">
<td><?php _e('Site URL', 'wp-ban'); ?>:</td>
Expand Down

0 comments on commit 13e0b1e

Please sign in to comment.