改进Url类

This commit is contained in:
thinkphp
2017-12-21 12:07:42 +08:00
parent 3728859d9a
commit 9108635c0f

View File

@@ -118,7 +118,7 @@ class Url
$type = Route::getBind('type');
if ($type) {
$bind = Route::getBind($type);
if (0 === strpos($url, $bind)) {
if ($bind && 0 === strpos($url, $bind)) {
$url = substr($url, strlen($bind) + 1);
}
}