Fixed this thing being a layer up too high.
This commit is contained in:
parent
83068a4183
commit
155b301405
1 changed files with 16 additions and 16 deletions
|
@ -38,6 +38,10 @@ if($msz->routingCtx->domainRoles->hasRole($request->getHeaderLine('Host'), 'main
|
||||||
if(str_starts_with($mszLegacyPath, $mszLegacyPathPrefix)) {
|
if(str_starts_with($mszLegacyPath, $mszLegacyPathPrefix)) {
|
||||||
$mszLegacyPathReal = realpath($mszLegacyPath);
|
$mszLegacyPathReal = realpath($mszLegacyPath);
|
||||||
if($mszLegacyPath === $mszLegacyPathReal || $mszLegacyPath === $mszLegacyPathReal . '/') {
|
if($mszLegacyPath === $mszLegacyPathReal || $mszLegacyPath === $mszLegacyPathReal . '/') {
|
||||||
|
if(is_dir($mszLegacyPath))
|
||||||
|
$mszLegacyPath .= '/index.php';
|
||||||
|
|
||||||
|
if(is_file($mszLegacyPath)) {
|
||||||
// this is here so filters can run...
|
// this is here so filters can run...
|
||||||
$msz->routingCtx->router->route(RouteInfo::exact(
|
$msz->routingCtx->router->route(RouteInfo::exact(
|
||||||
$request->method,
|
$request->method,
|
||||||
|
@ -54,10 +58,6 @@ if($msz->routingCtx->domainRoles->hasRole($request->getHeaderLine('Host'), 'main
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_dir($mszLegacyPath))
|
|
||||||
$mszLegacyPath .= '/index.php';
|
|
||||||
|
|
||||||
if(is_file($mszLegacyPath)) {
|
|
||||||
// Reconstruct $_POST since PHP no longer makes it for us
|
// Reconstruct $_POST since PHP no longer makes it for us
|
||||||
if($request->getBody()->isReadable() && empty($_POST)) {
|
if($request->getBody()->isReadable() && empty($_POST)) {
|
||||||
$mszRequestContent = (function($contentType, $stream) {
|
$mszRequestContent = (function($contentType, $stream) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue