From 950c0b56b4095254d949bb668f511befb796197f Mon Sep 17 00:00:00 2001 From: El RIDO Date: Tue, 6 Feb 2024 19:21:14 +0100 Subject: [PATCH] revert changing compression level as per discussion with @rugk, see: https://github.com/PrivateBin/PrivateBin/pull/1236#discussion_r1473639960 --- CHANGELOG.md | 1 - js/zlib-1.3.1.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1a6bdc1..7bd051ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## 1.6.3 (not yet released) * ADDED: Detect and report on damaged pastes (#1218) -* CHANGED: Increase zlib compression level from 7 to 9 * CHANGED: Upgrading libraries to: DOMpurify 3.0.8 & zlib 1.3.1 * FIXED: Support more types of valid URLs for shorteners, incl. IDN ones (#1224) diff --git a/js/zlib-1.3.1.js b/js/zlib-1.3.1.js index fbfb7154..268d0841 100644 --- a/js/zlib-1.3.1.js +++ b/js/zlib-1.3.1.js @@ -6,7 +6,7 @@ async function initialize() { if (ret) return ret; - const COMPRESSION_LEVEL = 9; + const COMPRESSION_LEVEL = 7; const NO_ZLIB_HEADER = -1; const CHUNK_SIZE = 32 * 1024; const map = {}; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index cea3da44..4f27907d 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -55,7 +55,7 @@ if ($ZEROBINCOMPATIBILITY) : - + diff --git a/tpl/page.php b/tpl/page.php index 011415be..927666a5 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -34,7 +34,7 @@ if ($ZEROBINCOMPATIBILITY): - +