From f5b9492e06ef2180aca81564a2c3faabd4a6b3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 20 Jul 2013 13:35:51 +0200 Subject: [PATCH] Remove all new lines after the end of PHP files. Fix a bug causing corrupt images with Wheezy. fix #81 --- OPDS_renderer.php | 2 +- base.php | 2 +- book.php | 2 +- feed.php | 2 +- fetch.php | 3 +++ language.php | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/OPDS_renderer.php b/OPDS_renderer.php index 5d0ced5..1b4cc31 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -265,4 +265,4 @@ class OPDSRenderer } } -?> +?> \ No newline at end of file diff --git a/base.php b/base.php index 19e25b3..b6d91ba 100644 --- a/base.php +++ b/base.php @@ -864,4 +864,4 @@ abstract class Base } } -?> +?> \ No newline at end of file diff --git a/book.php b/book.php index 7bf5678..5c18f58 100644 --- a/book.php +++ b/book.php @@ -562,4 +562,4 @@ order by substr (upper (sort), 1, 1)"); } } -?> +?> \ No newline at end of file diff --git a/feed.php b/feed.php index accbf38..527185f 100644 --- a/feed.php +++ b/feed.php @@ -36,4 +36,4 @@ return; break; } -?> +?> \ No newline at end of file diff --git a/fetch.php b/fetch.php index f5dafbb..af38d08 100644 --- a/fetch.php +++ b/fetch.php @@ -50,6 +50,9 @@ function notFound () { return; } } + + // Clean output buffer : mandatory for nginx / php-fpm on Wheezy + ob_end_clean(); switch ($type) { diff --git a/language.php b/language.php index 8991e3c..a0676fe 100644 --- a/language.php +++ b/language.php @@ -64,4 +64,4 @@ order by languages.lang_code'); return $entryArray; } } -?> +?> \ No newline at end of file