From 9a2b436cb94081d2a9f4aacf12df02042190716d Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 31 Aug 2021 11:52:10 +0300 Subject: [PATCH] fix parsing of single-quoted strings --- .../components/com_jedchecker/libraries/rules/language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/language.php b/administrator/components/com_jedchecker/libraries/rules/language.php index 037b56e..b4381b4 100644 --- a/administrator/components/com_jedchecker/libraries/rules/language.php +++ b/administrator/components/com_jedchecker/libraries/rules/language.php @@ -199,7 +199,7 @@ class JedcheckerRulesLanguage extends JEDcheckerRule $value = ltrim($value); // Parse multiline values - while (!preg_match('/^((?>\'(?>[^\'\\\\]+|\\\\.)*\'|"(?>[^"\\\\]+|\\\\.)*"|[^\'";]+)*)(;.*)?$/', $value, $matches)) + while (!preg_match('/^((?>\'[^\']*\'|"(?>[^"\\\\]+|\\\\.)*"|[^\'";]+)*)(;.*)?$/', $value, $matches)) { if ($lineno + 1 >= $nLines) {