mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
Allow protocol-relative URLs in <load> syntax
This commit is contained in:
parent
2cfe4a1d7d
commit
cd823663b4
2 changed files with 5 additions and 1 deletions
|
|
@ -345,6 +345,10 @@ class FrontEndFileHandler extends Handler
|
|||
{
|
||||
$path = './' . $path;
|
||||
}
|
||||
elseif(!strncmp($path, '//', 2))
|
||||
{
|
||||
return $path;
|
||||
}
|
||||
|
||||
$path = preg_replace('@/\./|(?<!:)\/\/@', '/', $path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue