From d5aeba60ca61fce1a4f7c20de3b049e68330aaba Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 20 Sep 2019 07:04:26 +0200 Subject: [PATCH] increase default size limit to 10 MiB, documenting change --- CHANGELOG.md | 1 + cfg/conf.sample.php | 4 ++-- lib/Configuration.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4a4d54d..45e3a587 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * CHANGED: Improved mobile UI - obscured send button and hard to click shortener button (#477) * CHANGED: Enhanced URL shortener integration (#479) * CHANGED: Improved file upload drag & drop UI (#317) + * CHANGED: Increased default size limit from 2 to 10 MiB, switch data from BLOB to MEDIUMBLOB in MySQL (#458) * CHANGED: Upgrading libraries to: DOMpurify 2.0.1 * FIXED: Enabling browsers without WASM to create pastes and read uncompressed ones (#454) * FIXED: Cloning related issues (#489, #491, #493, #494) diff --git a/cfg/conf.sample.php b/cfg/conf.sample.php index 0f2d50d5..91616b84 100644 --- a/cfg/conf.sample.php +++ b/cfg/conf.sample.php @@ -29,8 +29,8 @@ defaultformatter = "plaintext" ; (optional) set a syntax highlighting theme, as found in css/prettify/ ; syntaxhighlightingtheme = "sons-of-obsidian" -; size limit per paste or comment in bytes, defaults to 2 Mebibytes -sizelimit = 2097152 +; size limit per paste or comment in bytes, defaults to 10 Mebibytes +sizelimit = 10485760 ; template to include, default is "bootstrap" (tpl/bootstrap.php) template = "bootstrap" diff --git a/lib/Configuration.php b/lib/Configuration.php index 67ecc234..d0258e12 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -45,7 +45,7 @@ class Configuration 'burnafterreadingselected' => false, 'defaultformatter' => 'plaintext', 'syntaxhighlightingtheme' => null, - 'sizelimit' => 2097152, + 'sizelimit' => 10485760, 'template' => 'bootstrap', 'notice' => '', 'languageselection' => false,