SF Patch #3391039 - Remove eval commands from PHP code

This commit is contained in:
Roland Gruber
2011-10-06 11:43:40 +11:00
committed by Deon George
parent 059b83befb
commit 7fc4f0c7e4
3 changed files with 6 additions and 19 deletions

View File

@@ -51,7 +51,7 @@ abstract class Tree {
return null;
$treeclass = $_SESSION[APPCONFIG]->getValue('appearance','tree');
eval('$tree = new '.$treeclass.'($server_id);');
$tree = new $treeclass($server_id);
# If we are not logged in, just return the empty tree.
if (is_null($server->getLogin(null)))