Skip to content
Permalink
Browse files

Make paths platform dependent.

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 fb8c2a5e46d12af1f228414dfc5a9ef6085386df
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/CakeRequest.php
@@ -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) {

0 comments on commit fb8c2a5

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