diff --git a/library/think/Url.php b/library/think/Url.php index 8cdd0226..4ca85581 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -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); } }