Pesky carriage returns

This commit is contained in:
Ciaran Gultnieks 2012-03-03 11:01:41 +00:00
parent f9fd11035c
commit 583f8c5b95

View file

@ -470,7 +470,7 @@ class FDroid
$handle = fopen(getenv('DOCUMENT_ROOT').'/repo/categories.txt', 'r');
if ($handle) {
while (($buffer = fgets($handle, 4096)) !== false) {
$categories[] = $buffer;
$categories[] = rtrim($buffer);
}
fclose($handle);
}