Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update UrlManager.php
  • Loading branch information
bobimicroweber committed Feb 18, 2022
1 parent 93e1e59 commit 2b8fa5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MicroweberPackages/Helper/UrlManager.php
Expand Up @@ -114,6 +114,9 @@ public function redirect($url)
$redirectUrl = str_replace("\r", "", $redirectUrl);
$redirectUrl = str_replace("\n", "", $redirectUrl);

$clearInput = new HTMLClean();
$redirectUrl = $clearInput->clean($redirectUrl);

if (headers_sent()) {
echo '<meta http-equiv="refresh" content="0;url=' . $redirectUrl . '">';
} else {
Expand Down

0 comments on commit 2b8fa5a

Please sign in to comment.