Fix incorrect conversion of JS template variable containing path #2657

This commit is contained in:
Kijin Sung 2026-02-05 23:05:19 +09:00
parent 8920cb7491
commit 26c59c251c
2 changed files with 11 additions and 1 deletions

View file

@ -528,7 +528,7 @@ class Template
*/
public function isRelativePath(string $path): bool
{
return !preg_match('#^((?:https?|file|data):|[\/\{<])#i', $path);
return !preg_match('#^((?:https?|file|data):|[\/\{\\\\<$\#@]|&\#x1B;)#i', $path);
}
/**