summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2016-05-25 06:35:52 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2016-05-25 06:53:00 +0200
commitf4504ac1229c0f0064fc5a7f80ebbd8a98427213 (patch)
tree5459371f1f9adf4bfbeca683ccfb3d0a46f5a605 /static
parent8b23ebc05eba911e0c885e38b4f05d2e42e6be04 (diff)
upload.php: Deprecate ob_start (output buffering)
None of us can find a reason why we would need to buffer our output in a PHP application. My best guess is this may be a relic from Pomf 1.0.0 or Moe panel. Unless someone finds a better reason to keep this, this feature is useless and has negligible benefit and will be removed. In respect for SemVer, deprecating this feature happens first in a minor version before removal in a next major version. Acked-by: Eliot Whalan <ewhal@pantsu.cat>
Diffstat (limited to 'static')
-rw-r--r--static/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/static/upload.php b/static/upload.php
index 8b0646c..ebedeab 100644
--- a/static/upload.php
+++ b/static/upload.php
@@ -30,6 +30,7 @@
*/
// Check if we can compress our output; if we can, we'll do it
+// This feature is deprecated since version 2.1.0.
if (ini_get('zlib.output_compression') !== 'Off'
&& isset($_SERVER['HTTP_ACCEPT_ENCODING'])
&& strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) {