diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-25 13:57:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 13:57:51 +0200 |
commit | 15d31c39eceee9ab15b15606c559112363f7ca3f (patch) | |
tree | f58a23d7062079ac53b4252ae58a05e2bbbaa1ff /application/http | |
parent | d63ff87a009313141ae684ec447b902562ff6ee7 (diff) | |
parent | 2458791e4e1c3b2c20913cb4b38ec34385fb336e (diff) | |
download | Shaarli-v0.11.tar.gz Shaarli-v0.11.tar.zst Shaarli-v0.11.zip |
Merge pull request #1426 from aguytech/v0.11-fixesv0.11
Diffstat (limited to 'application/http')
-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); |