mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix TemplateParserV1 and FrontEndFileHandler not recognizing Google webfonts '.../css2?...' URL as CSS
This commit is contained in:
parent
b591f023ef
commit
e2cfa524d0
4 changed files with 30 additions and 2 deletions
|
|
@ -628,7 +628,14 @@ class TemplateParser_v1
|
|||
$doUnload = ($m[3] === 'unload');
|
||||
$isRemote = !!preg_match('@^(https?:)?//@i', $attr['target']);
|
||||
|
||||
if(!$isRemote)
|
||||
if($isRemote)
|
||||
{
|
||||
if (empty($pathinfo['extension']))
|
||||
{
|
||||
$pathinfo['extension'] = preg_match('/[\.\/](css|js)[0-9]?\b/', $attr['target'], $mx) ? $mx[1] : null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (preg_match('!^\\^/(.+)!', $attr['target'], $tmatches))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue