Skip to content
Permalink
Browse files

Removing unused code, and adding a realpath() to document_root, so sy…

…mlinks work a bit better.
  • Loading branch information...
markstory committed Feb 17, 2011
1 parent 63caf56 commit a95d4acf09d7bd96aa986837b386f3a1ecc7b829
Showing with 1 addition and 2 deletions.
  1. +1 −2 cake/dispatcher.php
@@ -359,8 +359,7 @@ function baseUrl() {
}
$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) {

0 comments on commit a95d4ac

Please sign in to comment.
You can’t perform that action at this time.