Skip to content

Commit

Permalink
Make paths platform dependent.
Browse files Browse the repository at this point in the history
This fixes issues with the built-in PHP webserver on windows.

Fixes #3608
  • Loading branch information
markstory committed Feb 8, 2013
1 parent 95bc8be commit fb8c2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeRequest.php
Expand Up @@ -305,7 +305,7 @@ protected function _base() {
$this->webroot = $base . '/';

$docRoot = env('DOCUMENT_ROOT');
$docRootContainsWebroot = strpos($docRoot, $dir . '/' . $webroot);
$docRootContainsWebroot = strpos($docRoot, $dir . DS . $webroot);

if (!empty($base) || !$docRootContainsWebroot) {
if (strpos($this->webroot, '/' . $dir . '/') === false) {
Expand Down

0 comments on commit fb8c2a5

Please sign in to comment.