From a95d4acf09d7bd96aa986837b386f3a1ecc7b829 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 16 Feb 2011 21:14:32 -0500 Subject: [PATCH] Removing unused code, and adding a realpath() to document_root, so symlinks work a bit better. --- cake/dispatcher.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 729bb7a44..bc4b5a711 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -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) {