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 046ab84 commit 6d0306aCopy full SHA for 6d0306a
src/Redirect.php
@@ -15,7 +15,8 @@ class Redirect
15
public static function to($url, $params = array())
16
{
17
// 以这些开头的直接跳转: "/"、"http://"、"https://"
18
- if (stripos($url, '/') === 0 || preg_match('/^http(s)?:\/\//i', $url)) {
+ //if (stripos($url, '/') === 0 || preg_match('/^http(s)?:\/\//i', $url)) {
19
+ if (preg_match('/^http(s)?:\/\//i', $url)) {
20
return new RedirectResponse($url);
21
}
22
0 commit comments