From 7611f708f5b0e659d8a0f2dcd724f4291b4260fe Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Apr 2016 12:09:39 +0530 Subject: [PATCH] Also add noreferrer --- src/calibre/srv/render_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/srv/render_book.py b/src/calibre/srv/render_book.py index 3e123ef796..eff1f7a4aa 100644 --- a/src/calibre/srv/render_book.py +++ b/src/calibre/srv/render_book.py @@ -211,7 +211,7 @@ class Container(ContainerBase): a.set('data-' + link_uid, json.dumps({'name':parts[0], 'frag':parts[1]}, ensure_ascii=False)) else: a.set('target', '_blank') - a.set('rel', 'noopener') + a.set('rel', 'noopener noreferrer') changed.add(name) elif mt == 'image/svg+xml': self.virtualized_names.add(name)