mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-09 01:26:50 +01:00
Fix HTTP User-Agent XSS vulnerability (#1488737)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
| program/steps/utils/error.inc |
|
||||
| |
|
||||
| This file is part of the Roundcube Webmail client |
|
||||
| Copyright (C) 2005-2011, The Roundcube Dev Team |
|
||||
| Copyright (C) 2005-2012, The Roundcube Dev Team |
|
||||
| |
|
||||
| Licensed under the GNU General Public License version 3 or |
|
||||
| any later version with exceptions for skins & plugins. |
|
||||
@@ -23,11 +23,11 @@ $rcmail = rcmail::get_instance();
|
||||
|
||||
// browser is not compatible with this application
|
||||
if ($ERROR_CODE==409) {
|
||||
$user_agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$user_agent = htmlentities($_SERVER['HTTP_USER_AGENT']);
|
||||
$__error_title = 'Your browser does not suit the requirements for this application';
|
||||
$__error_text = <<<EOF
|
||||
<i>Supported browsers:</i><br />
|
||||
» Microsoft Internet Explorer 6+<br />
|
||||
» Microsoft Internet Explorer 7+<br />
|
||||
» Mozilla Firefox 3+<br />
|
||||
» Chrome 10+<br />
|
||||
» Safari 4+<br />
|
||||
|
||||
Reference in New Issue
Block a user