mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Removing unused code, and adding a realpath() to document_root, so symlinks work a bit better.
This commit is contained in:
parent
63caf566fb
commit
a95d4acf09
1 changed files with 1 additions and 2 deletions
|
@ -359,8 +359,7 @@ class Dispatcher extends Object {
|
||||||
}
|
}
|
||||||
$this->webroot = $base . '/';
|
$this->webroot = $base . '/';
|
||||||
|
|
||||||
$docRoot = env('DOCUMENT_ROOT');
|
$docRoot = realpath(env('DOCUMENT_ROOT'));
|
||||||
$script = realpath(env('SCRIPT_FILENAME'));
|
|
||||||
$docRootContainsWebroot = strpos($docRoot, $dir . '/' . $webroot);
|
$docRootContainsWebroot = strpos($docRoot, $dir . '/' . $webroot);
|
||||||
|
|
||||||
if (!empty($base) || !$docRootContainsWebroot) {
|
if (!empty($base) || !$docRootContainsWebroot) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue