mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix invalid result of FileHandler::getRealPath() on Windows
This commit is contained in:
parent
c5758ddfd9
commit
eedba6f032
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ class FileHandler
|
|||
{
|
||||
return \RX_BASEDIR . substr($source, 2);
|
||||
}
|
||||
elseif (strncmp($source, '/', 1) === 0)
|
||||
elseif (preg_match('@^(?:/|[a-z]:[\\\\/]|\\\\|https?:)@i', $source))
|
||||
{
|
||||
return $source;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue