33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-29 04:42:36 +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);
}