mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
- prevent XSS attack in showtree()
This commit is contained in:
parent
1b29ae6bd8
commit
8eac512855
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user