Browse Source

fix variable editing

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1144 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
4cf9eef878
  1. 4
      htdocs/cacher/edit.php

4
htdocs/cacher/edit.php

@ -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…
Cancel
Save