diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-12 09:46:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-12 09:46:12 +0200 |
commit | cf01113cad2fc772113b5d1b7cd5be5e712ae0eb (patch) | |
tree | 95cc78e1144fcd4021cda987d0ce2f9ec357f26e /application | |
parent | 752bc4c5e6a2e525e3b714abfa24e1aa7f6c71ff (diff) | |
parent | 424530d9afbee2b2ba0d9b80679fbd0e4ec2d4e2 (diff) | |
download | Shaarli-cf01113cad2fc772113b5d1b7cd5be5e712ae0eb.tar.gz Shaarli-cf01113cad2fc772113b5d1b7cd5be5e712ae0eb.tar.zst Shaarli-cf01113cad2fc772113b5d1b7cd5be5e712ae0eb.zip |
Merge pull request #1424 from aguytech/master
Diffstat (limited to 'application')
-rw-r--r-- | application/http/UrlUtils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/http/UrlUtils.php b/application/http/UrlUtils.php index 4bc84b82..e8d1a283 100644 --- a/application/http/UrlUtils.php +++ b/application/http/UrlUtils.php | |||
@@ -73,7 +73,7 @@ function add_trailing_slash($url) | |||
73 | */ | 73 | */ |
74 | function whitelist_protocols($url, $protocols) | 74 | function whitelist_protocols($url, $protocols) |
75 | { | 75 | { |
76 | if (startsWith($url, '?') || startsWith($url, '/')) { | 76 | if (startsWith($url, '?') || startsWith($url, '/') || startsWith($url, '#')) { |
77 | return $url; | 77 | return $url; |
78 | } | 78 | } |
79 | $protocols = array_merge(['http', 'https'], $protocols); | 79 | $protocols = array_merge(['http', 'https'], $protocols); |