1
0

revealer: warning re version 0 now includes URL

This commit is contained in:
SomberNight
2018-12-20 04:21:40 +01:00
parent f0868f5a51
commit caae9f8a6a
2 changed files with 9 additions and 5 deletions

View File

@@ -201,10 +201,14 @@ class Plugin(RevealerPlugin):
def warn_old_revealer(self):
if self.versioned_seed.version == '0':
self.d.show_warning(''.join(
["<b>", _("Warning"), ": </b>",
_("Revealers starting with 0 are not secure due to a vulnerability."), ' ',
_("Proceed at your own risk.")]))
link = "https://revealer.cc/revealer-warning-and-upgrade/"
self.d.show_warning(("<b>{warning}: </b>{ver0}<br>"
"{url}<br>"
"{risk}")
.format(warning=_("Warning"),
ver0=_("Revealers starting with 0 are not secure due to a vulnerability."),
url=_("More info at: {}").format(f'<a href="{link}">{link}</a>'),
risk=_("Proceed at your own risk.")))
def cypherseed_dialog(self, window):
self.warn_old_revealer()