Fix invalid result of FileHandler::getRealPath() on Windows

This commit is contained in:
Kijin Sung 2016-05-19 21:03:44 +09:00
parent c5758ddfd9
commit eedba6f032

View file

@ -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;
}