]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Use https for Wikipedia
authorOleg Broytman <phd@phdru.name>
Sun, 31 May 2015 20:57:12 +0000 (23:57 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 23 Dec 2015 15:54:13 +0000 (18:54 +0300)
phd.py

diff --git a/phd.py b/phd.py
index 7d9cf13d7c895dd6c1e628ecadaaa355f7b7d587..1e884cfd9ebd1c2a89aabd272cf95f60a2722e95 100644 (file)
--- a/phd.py
+++ b/phd.py
@@ -101,10 +101,10 @@ class phd(Template):
 <a href="%(img_name)s-800x600.jpg">800x600</a>, <a href="%(img_name)s-1024x800.jpg">1024x800</a>""" % {"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)