Skip to content
Permalink
Browse files Browse the repository at this point in the history
Sanitize all URLs
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
  • Loading branch information
khalwat committed Sep 25, 2021
1 parent 1a47702 commit 0c5c0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/UrlHelper.php
Expand Up @@ -56,7 +56,7 @@ public static function siteUrl(string $path = '', $params = null, string $scheme
return $url;
}

return parent::siteUrl($path, $params, $scheme, $siteId);
return DynamicMeta::sanitizeUrl(parent::siteUrl($path, $params, $scheme, $siteId));
}

/**
Expand Down Expand Up @@ -130,7 +130,7 @@ public static function absoluteUrlWithProtocol($url): string
$url = rtrim($url, '/');
}

return $url;
return DynamicMeta::sanitizeUrl($url);
}

/**
Expand Down

0 comments on commit 0c5c0c0

Please sign in to comment.