Skip to content

Commit

Permalink
banners.php: Warn Microsoft Edge users about the XSS filter
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Nov 16, 2015
1 parent 8bcebd7 commit 81c1b20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions banners.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// TODO: I18N

// IE warning
if ( strpos( $_SERVER['HTTP_USER_AGENT'], "MSIE" ) !== false || !empty( $_GET['forceiewarning'] ) ) {
$banners[] = "<div class='alert alert-danger'>Using the tool on Internet Explorer is not recommended. You may experience strange character replacements.</div>";
if ( false !== strpos( $_SERVER['HTTP_USER_AGENT'], "MSIE" ) || false !== strpos( $_SERVER['HTTP_USER_AGENT'], "Edge/12" ) || !empty( $_GET['forceiewarning'] ) ) {
$banners[] = "<div class='alert alert-danger'>Use Internet Explorer or Microsoft Edge at your own risk. Due to the XSS filter employed on those browsers, you may experience strange character replacements.</div>";
}


0 comments on commit 81c1b20

Please sign in to comment.