From f494371060a058569e08e1392ab028b0f8932eae Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 31 Mar 2008 04:58:26 +0000 Subject: [PATCH] Only use htmlspecialchars. --- www/phplib/globals.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/phplib/globals.php b/www/phplib/globals.php index 4f66a14..4f21fb1 100644 --- a/www/phplib/globals.php +++ b/www/phplib/globals.php @@ -34,7 +34,7 @@ $REMOTE_ADDR = $_SERVER["REMOTE_ADDR"]; // Handle PHP_SELF differently - we need to quote it properly... if (array_key_exists("PHP_SELF", $_SERVER)) - $PHP_SELF = htmlspecialchars(urlencode($_SERVER["PHP_SELF"]), ENT_QUOTES); + $PHP_SELF = htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES); else $PHP_SELF = "";