Applying optimization in Router::__parseExtension from 'robustsolution'. Fixes #301

This commit is contained in:
mark_story 2009-11-14 16:29:33 -05:00
parent 9376826aa4
commit 8b1a2b1f72

View file

@ -562,6 +562,7 @@ class Router extends Object {
if (strcasecmp($name, $match) === 0) { if (strcasecmp($name, $match) === 0) {
$url = substr($url, 0, strpos($url, '.' . $name)); $url = substr($url, 0, strpos($url, '.' . $name));
$ext = $match; $ext = $match;
break;
} }
} }
} }