blob: 2cb7cdf631db29f2c080ede752398a8df41a5129 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-program_steps_utils_error.inc,v 1.1 2012/10/15 03:33:23 taca Exp $
Minimum fix for XSS with HTTP_USER_AGENT from the repository.
--- program/steps/utils/error.inc.orig 2012-08-17 19:34:07.000000000 +0000
+++ program/steps/utils/error.inc
@@ -25,7 +25,7 @@
// 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 />
|