From efb98c845795a9c0fc746670de76901889c90598 Mon Sep 17 00:00:00 2001
From: Marek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Date: Wed, 30 Nov 2022 21:33:11 +0100
Subject: [PATCH] Wrapped Strings::getBytesFromShorthand() around the last
 overseen DI::config()->get('system', 'maximagesize')

---
 js_upload/js_upload.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js_upload/js_upload.php b/js_upload/js_upload.php
index 0c8e5836..e93ce7d6 100644
--- a/js_upload/js_upload.php
+++ b/js_upload/js_upload.php
@@ -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))];