Skip to content
This repository
Browse code

use strict comparison for strings

  • Loading branch information...
commit c671d8da62a2e9c5f9d3d329fa3a1ed99f1a3f58 1 parent 2f57a7f
Mark authored July 02, 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
@@ -263,7 +263,7 @@ protected function _url() {
263 263
 		$endsWithLength = strlen($endsWithIndex);
264 264
 		if (
265 265
 			strlen($uri) >= $endsWithLength &&
266  
-			substr($uri, -$endsWithLength) == $endsWithIndex
  266
+			substr($uri, -$endsWithLength) === $endsWithIndex
267 267
 		) {
268 268
 			$uri = '/';
269 269
 		}

0 notes on commit c671d8d

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