33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2025-01-03 22:57:21 +00:00

fix processing of escaped characters in backtick operator

This commit is contained in:
Denis Ryabov 2022-08-03 16:26:38 +03:00
parent a33ff617d8
commit a243f9b665

View File

@ -192,7 +192,7 @@ abstract class JEDCheckerHelper
break; break;
case '`': case '`':
if (!preg_match("/`.*?`/As", $content, $match, 0, $pos)) if (!preg_match("/`(?>[^`\\\\]+|\\\\.)*`/As", $content, $match, 0, $pos))
{ {
return $cleanContent . substr($content, $pos); return $cleanContent . substr($content, $pos);
} }