fixed printing of filenames from zip archives - SC#273
This commit is contained in:
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user