Changeset 419 for trunk/admin/edit.php

Show
Ignore:
Timestamp:
06/20/2007 04:28:33 AM (6 years ago)
Author:
moo
Message:

fixed #103, able to edit non-string variable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/edit.php

    r371 r419  
    1212 
    1313if ($_SERVER['REQUEST_METHOD'] == 'POST') { 
    14     xcache_set($name, $_POST['value']); 
     14    eval('$value = ' . $_POST['value']); 
     15    xcache_set($name, $value); 
    1516    header("Location: xcache.php?type=" . XC_TYPE_VAR); 
    1617    exit; 
    1718} 
    18 $value = xcache_get($name); 
     19$value = var_export(xcache_get($name), true); 
    1920 
    2021$xcache_version = XCACHE_VERSION;