Merge pull request #1424 from aguytech/master
This commit is contained in:
commit
cf01113cad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue