mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix backslash bug
This commit is contained in:
parent
6e6ce55bb8
commit
65e35ec38e
|
|
@ -105,7 +105,7 @@ final class Dispatcher
|
|||
$views = [];
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user