From 8eac51285555447d6c3bd462bac1bb8c6df5082b Mon Sep 17 00:00:00 2001 From: steinm Date: Tue, 28 Aug 2012 06:39:15 +0000 Subject: [PATCH] - prevent XSS attack in showtree() --- inc/inc.Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.Utils.php b/inc/inc.Utils.php index 9c4b71781..fec13c898 100644 --- a/inc/inc.Utils.php +++ b/inc/inc.Utils.php @@ -274,7 +274,7 @@ function _add_log_line($msg="") { /* {{{ */ function showtree() { /* {{{ */ global $settings; - if (isset($_GET["showtree"])) return $_GET["showtree"]; + if (isset($_GET["showtree"])) return intval($_GET["showtree"]); else if ($settings->_enableFolderTree==0) return 0; return 1;