Handle the special case of Context::loadFile($filename, true)

https://xetown.com/questions/1793899
This commit is contained in:
Kijin Sung 2023-11-09 01:17:21 +09:00
parent 5e914791e2
commit d54eb4f3d5
2 changed files with 13 additions and 4 deletions

View file

@ -113,6 +113,13 @@ class FrontEndFileHandler extends Handler
}
}
// Remove 'true' parameter used as a CDN flag in some XE versions.
if (isset($args[1]) && $args[1] === true)
{
$args[1] = null;
}
// Find the source type hint if possible.
if (isset($args[2]) && preg_match('/IE/i', $args[2]))
{
$source_hint = '';