From 8b1a2b1f728b11b759359f334f963e6c490e6ff8 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 14 Nov 2009 16:29:33 -0500 Subject: [PATCH] Applying optimization in Router::__parseExtension from 'robustsolution'. Fixes #301 --- cake/libs/router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/libs/router.php b/cake/libs/router.php index 0b2b3b61c..579b3ff4a 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -562,6 +562,7 @@ class Router extends Object { if (strcasecmp($name, $match) === 0) { $url = substr($url, 0, strpos($url, '.' . $name)); $ext = $match; + break; } } }