aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2017-08-20 00:44:15 +0200
committerfilip <filip.komar@gmail.com>2017-08-20 00:44:15 +0200
commit6b92f85dd29355ad7ad2a603a116306ba3c8d02b (patch)
treedc9cc4f018ba3ae2e3db9954a69e9c5998cc9d45 /lib/Downloads.php
parent037c395ca22276bc0c48d32e378e6a0ec7d7825c (diff)
downloadwww-6b92f85dd29355ad7ad2a603a116306ba3c8d02b.tar
www-6b92f85dd29355ad7ad2a603a116306ba3c8d02b.tar.gz
www-6b92f85dd29355ad7ad2a603a116306ba3c8d02b.tar.bz2
www-6b92f85dd29355ad7ad2a603a116306ba3c8d02b.tar.xz
www-6b92f85dd29355ad7ad2a603a116306ba3c8d02b.zip
proper chr encoding for generating mirror cache lists
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index 6a5342993..dc955d431 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -167,7 +167,7 @@ class Downloads
$item = array(
'zone' => isset($m['zone']) ? $m['zone'] : '?',
'country' => isset($m['country']) ? $m['country'] : '?',
- 'city' => isset($m['city']) ? $m['city'] : '?',
+ 'city' => isset($m['city']) ? utf8_encode($m['city']) : '-',
// BEWARE of the path substitution here. Must match.
'url' => str_replace('/distrib/5/i586', '', $m['url'])
);
@@ -200,7 +200,6 @@ class Downloads
file_put_contents($cache_file,
sprintf('<?php $mirrors = %s; ?>' . PHP_EOL, var_export($mirrors, true)));
}
-
return $mirrors;
}