]> git.mxchange.org Git - friendica-addons.git/commitdiff
Wrapped Strings::getBytesFromShorthand() around the last overseen DI::config()->get...
authorMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Wed, 30 Nov 2022 20:33:11 +0000 (21:33 +0100)
committerMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Wed, 30 Nov 2022 20:33:11 +0000 (21:33 +0100)
js_upload/js_upload.php

index 0c8e58363774060bf758a291bad4954cb5d04ebe..e93ce7d6e26077e92c3928e903f44f99cb2e13f3 100644 (file)
@@ -221,7 +221,7 @@ class qqFileUploader
 //             }
 
 
-               $maximagesize = DI::config()->get('system', 'maximagesize');
+               $maximagesize = Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
 
                if (($maximagesize) && ($size > $maximagesize)) {
                        return ['error' => DI::l10n()->t('Image exceeds size limit of %s', Strings::formatBytes($maximagesize))];