31
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-06-26 08:02:35 +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;
case '`':
if (!preg_match("/`.*?`/As", $content, $match, 0, $pos))
if (!preg_match("/`(?>[^`\\\\]+|\\\\.)*`/As", $content, $match, 0, $pos))
{
return $cleanContent . substr($content, $pos);
}