diff options
| author | 2016-08-13 19:20:36 +0200 | |
|---|---|---|
| committer | 2016-08-13 19:20:36 +0200 | |
| commit | 7eab5a3a69d0a1ca0812c78a00fb353731ae14a7 (patch) | |
| tree | 36fea769271878d2ad9927a26cb25aa53a799207 /lib/lib_rss.php | |
| parent | 97efdcac1e38c568b6be313120694e7201d4c69c (diff) | |
| parent | b3963f6ed6316745593da8a68116006a179a817e (diff) | |
Merge pull request #1210 from Alkarex/csrf-token
CSRF token, update HTTP Referrer policy to same-origin
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 8196f7847..b5ba78889 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -391,7 +391,7 @@ function cryptAvailable() { function is_referer_from_same_domain() { if (empty($_SERVER['HTTP_REFERER'])) { - return false; + return true; //Accept empty referer while waiting for good support of meta referrer same-origin policy in browsers } $host = parse_url(((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ? 'https://' : 'http://') . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST'])); |
