1
0
Fork 0

fix variable editing

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1144 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-08-23 02:20:26 +00:00
parent c51cf16cd0
commit 4cf9eef878
1 changed files with 2 additions and 2 deletions

View File

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