- prevent XSS attack in showtree()

This commit is contained in:
steinm 2012-08-28 06:39:15 +00:00
parent 1b29ae6bd8
commit 8eac512855

View File

@ -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;