1
0
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:
Daniil Gentili 2021-04-09 00:06:36 +02:00
parent 398970e306
commit b5a672808f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

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