From 4cf9eef8789d361898e662c5a9862cf83b6441fc Mon Sep 17 00:00:00 2001 From: Xuefer Date: Thu, 23 Aug 2012 02:20:26 +0000 Subject: [PATCH] fix variable editing git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1144 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- htdocs/cacher/edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/cacher/edit.php b/htdocs/cacher/edit.php index f24bb92..aca800e 100644 --- a/htdocs/cacher/edit.php +++ b/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);