Skip to content

Commit 6d0306a

Browse files
author
Ethan
committed
dev
1 parent 046ab84 commit 6d0306a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Redirect.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class Redirect
1515
public static function to($url, $params = array())
1616
{
1717
// 以这些开头的直接跳转: "/"、"http://"、"https://"
18-
if (stripos($url, '/') === 0 || preg_match('/^http(s)?:\/\//i', $url)) {
18+
//if (stripos($url, '/') === 0 || preg_match('/^http(s)?:\/\//i', $url)) {
19+
if (preg_match('/^http(s)?:\/\//i', $url)) {
1920
return new RedirectResponse($url);
2021
}
2122

0 commit comments

Comments
 (0)