From 6b92f85dd29355ad7ad2a603a116306ba3c8d02b Mon Sep 17 00:00:00 2001 From: filip Date: Sun, 20 Aug 2017 00:44:15 +0200 Subject: proper chr encoding for generating mirror cache lists --- lib/Downloads.php | 3 +-- 1 file changed, 1 insertion(+), 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_EOL, var_export($mirrors, true))); } - return $mirrors; } -- cgit v1.2.1