mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Pesky carriage returns
This commit is contained in:
parent
f9fd11035c
commit
583f8c5b95
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ class FDroid
|
||||||
$handle = fopen(getenv('DOCUMENT_ROOT').'/repo/categories.txt', 'r');
|
$handle = fopen(getenv('DOCUMENT_ROOT').'/repo/categories.txt', 'r');
|
||||||
if ($handle) {
|
if ($handle) {
|
||||||
while (($buffer = fgets($handle, 4096)) !== false) {
|
while (($buffer = fgets($handle, 4096)) !== false) {
|
||||||
$categories[] = $buffer;
|
$categories[] = rtrim($buffer);
|
||||||
}
|
}
|
||||||
fclose($handle);
|
fclose($handle);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue