diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index cba67e64..21bc3e8c 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -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); }