We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0306a commit 87d1008Copy full SHA for 87d1008
src/Redirect.php
@@ -14,8 +14,7 @@ class Redirect
14
*/
15
public static function to($url, $params = array())
16
{
17
- // 以这些开头的直接跳转: "/"、"http://"、"https://"
18
- //if (stripos($url, '/') === 0 || preg_match('/^http(s)?:\/\//i', $url)) {
+ // 以这些开头的直接跳转: "http://"、"https://"
19
if (preg_match('/^http(s)?:\/\//i', $url)) {
20
return new RedirectResponse($url);
21
}
0 commit comments