From 5197f278e8da093e392349b4016a420c1f7c233b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Apr 2016 11:48:55 +0530 Subject: [PATCH] Set noopener for external links --- src/calibre/srv/render_book.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/srv/render_book.py b/src/calibre/srv/render_book.py index 6c565c46ec..3e123ef796 100644 --- a/src/calibre/srv/render_book.py +++ b/src/calibre/srv/render_book.py @@ -211,6 +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') changed.add(name) elif mt == 'image/svg+xml': self.virtualized_names.add(name)