From 7306a31a7d472ccb3314202c4005b55cbf19da6c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 3 Jul 2021 20:32:39 +0200 Subject: [PATCH 1/2] release v1.24.0 --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index d35adbc..5faecd0 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -26,7 +26,7 @@ If you like this application and if you want to support the development: * [Donate with liberapay](https://liberapay.com/deblan) * [Leave a comment](https://apps.nextcloud.com/apps/side_menu#comments) ]]> - 1.23.1 + 1.24.0 agpl Simon Vieille SideMenu From d8072d8568d2dc821021bf0f62ebfaf5458c771e Mon Sep 17 00:00:00 2001 From: sergeng Date: Sun, 16 Jan 2022 16:38:02 +0100 Subject: [PATCH 2/2] Update 'lib/Service/LangRepository.php' Resolve web app BSOD giving the following error due to no proper escaping. "exception":{ + "Exception":"Doctrine\\DBAL\\Exception\\InvalidFieldNameException", + "Message":"" + An exception occurred while executing a query: SQLSTATE[42703]: Undefined column: 7 ERROR: column "lang" does not exist + LINE 1: ...configvalue FROM "oc_preferences" WHERE configkey="lang" and... Signed-off-by: sergeng --- lib/Service/LangRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/LangRepository.php b/lib/Service/LangRepository.php index c998a7e..bc124bd 100644 --- a/lib/Service/LangRepository.php +++ b/lib/Service/LangRepository.php @@ -26,7 +26,7 @@ class LangRepository $qb = $this->db->getQueryBuilder(); $qb->select($qb->createFunction('DISTINCT configvalue')) - ->where('configkey="lang" and appid="core" and configvalue<>"en"') + ->where('configkey=\'lang\' and appid=\'core\' and configvalue<>\'en\'') ->from('preferences') ;