forked from extern/egroupware
closed security hole of using evaled code to show globals vars (which contain eg. passwords)
This commit is contained in:
parent
424e3ac8b2
commit
59f2990851
@ -322,7 +322,8 @@ function cat_id($cats)
|
||||
$val = str_replace($CPre.$vars[1].$CPos,$val[0] == '@' ? "'".addslashes($fields[index($vars[1],$csv_fields)])."'" : $fields[index($vars[1],$csv_fields)],$val);
|
||||
}
|
||||
if ($val[0] == '@') {
|
||||
$val = 'return '.substr($val,1).';';
|
||||
// removing the $ to close security hole of showing vars, which contain eg. passwords
|
||||
$val = 'return '.substr(str_replace('$','',$val),1).';';
|
||||
// echo "<p>eval('$val')=";
|
||||
$val = eval($val);
|
||||
// echo "'$val'</p>";
|
||||
|
Loading…
Reference in New Issue
Block a user