Skip to content

Commit 187e949

Browse files
committed
update
1 parent e6361e9 commit 187e949

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/MicroweberPackages/Helper/UrlManager.php

+8
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@ public function redirect($url)
105105

106106
$redirectUrl = site_url();
107107
$parseUrl = parse_url($url);
108+
108109
if (isset($parseUrl['host'])) {
110+
if(isset($parseUrl['user']) and $parseUrl['user']){
111+
return \Redirect::to(site_url());
112+
}
113+
114+
if(isset($parseUrl['pass']) and $parseUrl['pass']){
115+
return \Redirect::to(site_url());
116+
}
109117
if ($parseUrl['host'] == site_hostname()) {
110118
$redirectUrl = $url;
111119
}

0 commit comments

Comments
 (0)