Skip to content
This repository
Browse code

Make paths platform dependent.

This fixes issues with the built-in PHP webserver on windows.

Fixes #3608
  • Loading branch information...
commit fb8c2a5e46d12af1f228414dfc5a9ef6085386df 1 parent 95bc8be
Mark Story authored February 07, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Cake/Network/CakeRequest.php
2  lib/Cake/Network/CakeRequest.php
@@ -305,7 +305,7 @@ protected function _base() {
305 305
 		$this->webroot = $base . '/';
306 306
 
307 307
 		$docRoot = env('DOCUMENT_ROOT');
308  
-		$docRootContainsWebroot = strpos($docRoot, $dir . '/' . $webroot);
  308
+		$docRootContainsWebroot = strpos($docRoot, $dir . DS . $webroot);
309 309
 
310 310
 		if (!empty($base) || !$docRootContainsWebroot) {
311 311
 			if (strpos($this->webroot, '/' . $dir . '/') === false) {

0 notes on commit fb8c2a5

Please sign in to comment.
Something went wrong with that request. Please try again.