summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index f84f961..37f6844 100644
--- a/index.php
+++ b/index.php
@@ -237,7 +237,7 @@ while ($this_array = each($new_array)){
break;
}
- $listing[$listsize]['filename'] = $value;
+ $listing[$listsize]['filename'] = utf8_encode($value);
$listing[$listsize]['type'] = $icon;
$listing[$listsize]['modified'] = $key;
$listing[$listsize]['size'] = $size_array[$key];
@@ -286,5 +286,7 @@ for ($i = 0; $i < count($listing); $i++) {
<?php
} else if ($_GET['format'] == "json") {
echo json_encode($listing);
+} else if ($_GET['format'] == "raw") {
+ print_r($listing);
}
?>