mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-03 11:18:42 +00:00
fix backslash bug
This commit is contained in:
parent
6e6ce55bb8
commit
65e35ec38e
|
|
@ -105,7 +105,7 @@ final class Dispatcher
|
||||||
$views = [];
|
$views = [];
|
||||||
$dispatch = \explode(':', $controller);
|
$dispatch = \explode(':', $controller);
|
||||||
|
|
||||||
if (!\file_exists($path = __DIR__ . '/../../' . \str_replace('\\', '/', $dispatch[0]) . '.php')) {
|
if (!\file_exists($path = __DIR__ . '/../../' . \ltrim(\str_replace('\\', '/', $dispatch[0]), '/') . '.php')) {
|
||||||
throw new PathException($path);
|
throw new PathException($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user