mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-31 18:31:02 +00:00
Enable no-referrer on img tags, enable strict-origin-when-cross-origin by default
Fixes #3889 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
570113208b
commit
2dbb5b2307
2 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ class ContentProxy
|
|||
*/
|
||||
public function updateEntry(Entry $entry, $url, array $content = [], $disableContentUpdate = false)
|
||||
{
|
||||
$this->graby->toggleImgNoReferrer(true);
|
||||
if (!empty($content['html'])) {
|
||||
$content['html'] = $this->graby->cleanupHtml($content['html'], $url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue