mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 06:31:11 +01:00
Use proper directory separators
This commit is contained in:
parent
398970e306
commit
b5a672808f
@ -43,7 +43,7 @@ final class WebRunner extends RunnerAbstract
|
||||
throw new ContextException('Could not get entry file!');
|
||||
}
|
||||
$rootDir = \dirname($rootDir).DIRECTORY_SEPARATOR;
|
||||
$uriDir = \dirname($uri);
|
||||
$uriDir = str_replace('/', DIRECTORY_SEPARATOR, \dirname($uri));
|
||||
if ($uriDir !== '/' && $uriDir !== '\\') {
|
||||
$uriDir .= DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user