fix variable editing
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1144 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
c51cf16cd0
commit
4cf9eef878
|
@ -12,13 +12,13 @@ $vcnt = xcache_count(XC_TYPE_VAR);
|
|||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
if (!empty($config['enable_eval'])) {
|
||||
eval('$value = ' . $_POST['value']);
|
||||
eval('$value = ' . $_POST['value'] . ';');
|
||||
}
|
||||
else {
|
||||
$value = $_POST['value'];
|
||||
}
|
||||
xcache_set($name, $value);
|
||||
header("Location: xcache.php?type=" . XC_TYPE_VAR);
|
||||
header("Location: ./?do=listvar");
|
||||
exit;
|
||||
}
|
||||
$value = xcache_get($name);
|
||||
|
|
Loading…
Reference in New Issue