From: Oleg Broytman Date: Sun, 31 May 2015 20:57:12 +0000 (+0300) Subject: Use https for Wikipedia X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f70f34fd4f10ae58d80e58e8584dab0546699704;p=phdru.name%2Fphdru.name.git Use https for Wikipedia --- diff --git a/phd.py b/phd.py index 7d9cf13..1e884cf 100644 --- a/phd.py +++ b/phd.py @@ -101,10 +101,10 @@ class phd(Template): 800x600, 1024x800""" % {"img_name": img_name} def wikipedia(self, query): - return "http://en.wikipedia.org/wiki/%s" % quote_string(query.replace(' ', '_'), ext_safe=',') + return "https://en.wikipedia.org/wiki/%s" % quote_string(query.replace(' ', '_'), ext_safe=',') def wikipedia_ru(self, query): - return "http://ru.wikipedia.org/wiki/%s" % quote_string(query.replace(' ', '_'), ext_safe=',') + return "https://ru.wikipedia.org/wiki/%s" % quote_string(query.replace(' ', '_'), ext_safe=',') def nigma(self, query): return "http://www.nigma.ru/index.php?s=%s" % quote_string(query)