Merge pull request #1424 from aguytech/master

This commit is contained in:
ArthurHoaro 2020-05-12 09:46:12 +02:00 committed by GitHub
commit cf01113cad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ function add_trailing_slash($url)
*/
function whitelist_protocols($url, $protocols)
{
if (startsWith($url, '?') || startsWith($url, '/')) {
if (startsWith($url, '?') || startsWith($url, '/') || startsWith($url, '#')) {
return $url;
}
$protocols = array_merge(['http', 'https'], $protocols);