diff options
author | Andrew Dolgov <[email protected]> | 2017-12-13 20:07:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-13 20:07:10 +0300 |
commit | 7651b6e2cd982f54c8a2d940ccf7582b53e08831 (patch) | |
tree | b4c8807adedabaa016c62283a1425d7485d0cc35 /include | |
parent | 6184f5264e7213af8406daa1ed485348dbf099fe (diff) |
sanitize: disable referrer via referrerpolicy for img elements
Diffstat (limited to 'include')
-rw-r--r-- | include/functions.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index e1e63c2a3..60aebe0da 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1585,6 +1585,7 @@ } if ($entry->nodeName == 'img') { + $entry->setAttribute('referrerpolicy', 'no-referrer'); if ($entry->hasAttribute('src')) { $is_https_url = parse_url($entry->getAttribute('src'), PHP_URL_SCHEME) === 'https'; |