fixed printing of filenames from zip archives - SC#273

This commit is contained in:
skodak
2006-07-12 05:54:37 +00:00
parent 551d2b59bf
commit 2277cfb8fb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -539,7 +539,7 @@
echo "<tr class=\"file\"><th align=\"left\" class=\"header name\">$strname</th><th align=\"right\" class=\"header size\">$strsize</th><th align=\"right\" class=\"header date\">$strmodified</th></tr>";
foreach ($list as $item) {
echo "<tr>";
print_cell("left", $item['filename'], 'name');
print_cell("left", s($item['filename']), 'name');
if (! $item['folder']) {
print_cell("right", display_size($item['size']), 'size');
} else {
+2 -2
View File
@@ -6673,7 +6673,7 @@ function unzip_show_status ($list,$removepath) {
foreach ($list as $item) {
echo "<tr>";
$item['filename'] = str_replace(cleardoubleslashes($removepath).'/', "", $item['filename']);
print_cell("left", $item['filename']);
print_cell("left", s($item['filename']));
if (! $item['folder']) {
print_cell("right", display_size($item['size']));
} else {
@@ -6690,7 +6690,7 @@ function unzip_show_status ($list,$removepath) {
print_simple_box_start("center");
echo "<pre>";
foreach ($list as $item) {
echo str_replace(cleardoubleslashes($removepath.'/'), '', $item).'<br />';
echo s(str_replace(cleardoubleslashes($removepath.'/'), '', $item)).'<br />';
}
echo "</pre>";
print_simple_box_end();