Changeset 1144

Show
Ignore:
Timestamp:
08/23/2012 04:20:26 AM (9 months ago)
Author:
moo
Message:

fix variable editing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/edit.php

    r1142 r1144  
    1313if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
    1414    if (!empty($config['enable_eval'])) { 
    15         eval('$value = ' . $_POST['value']); 
     15        eval('$value = ' . $_POST['value'] . ';'); 
    1616    } 
    1717    else { 
     
    1919    } 
    2020    xcache_set($name, $value); 
    21     header("Location: xcache.php?type=" . XC_TYPE_VAR); 
     21    header("Location: ./?do=listvar"); 
    2222    exit; 
    2323}