mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56: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 . '/';
|
||||
|
||||
$docRoot = env('DOCUMENT_ROOT');
|
||||
$script = realpath(env('SCRIPT_FILENAME'));
|
||||
$docRoot = realpath(env('DOCUMENT_ROOT'));
|
||||
$docRootContainsWebroot = strpos($docRoot, $dir . '/' . $webroot);
|
||||
|
||||
if (!empty($base) || !$docRootContainsWebroot) {
|
||||
|
|
Loading…
Add table
Reference in a new issue