Ignore:
Timestamp:
2012-08-23T10:27:54+02:00 (3 years ago)
Author:
Xuefer
Message:

closes #287: namespace support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/sub/entrylist.tpl.php

    r1143 r1146  
    6161
    6262TR;
    63     $name     = htmlspecialchars($entry['name']);
    6463    $hits     = number_format($entry['hits']);
    6564    $size     = size($entry['size']);
     
    8180
    8281    if ($isphp) {
    83         $namelink = $name;
     82        $hname = htmlspecialchars($entry['name']);
     83        $namelink = $hname;
    8484        echo <<<ENTRY
    8585            <td>{$entry['cache_name']} {$i}</td>
     
    8888    }
    8989    else {
     90        $name = $entry['name'];
     91        if (!empty($config['enable_eval'])) {
     92            $name = var_export($name, true);
     93        }
     94        $uname = urlencode($name);
     95        $hname = htmlspecialchars(str_replace("\0", "\\0", $entry['name']));
    9096        echo <<<ENTRY
    91             <td><label><input type="checkbox" name="remove[]" value="{$name}"/>{$entry['cache_name']} {$i}</label></td>
     97            <td><label><input type="checkbox" name="remove[]" value="{$hname}"/>{$entry['cache_name']} {$i}</label></td>
    9298
    9399ENTRY;
    94         $uname = urlencode($entry['name']);
    95         $namelink = "<a href=\"edit.php?name=$uname\">$name</a>";
     100        $namelink = "<a href=\"edit.php?name=$uname\">$hname</a>";
    96101    }
    97102
Note: See TracChangeset for help on using the changeset viewer.