Changeset 419 for trunk/admin/edit.php


Ignore:
Timestamp:
2007-06-20T04:28:33+02:00 (8 years ago)
Author:
moo
Message:

fixed #103, able to edit non-string variable

File:
1 edited

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; 
Note: See TracChangeset for help on using the changeset viewer.