Use https instead of http
This commit is contained in:
parent
423cfb9fdc
commit
b9b5690bc4
2 changed files with 5 additions and 5 deletions
|
@ -96,7 +96,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
|||
color = convert_rgb_to_hex(url_color)
|
||||
url = match.group()
|
||||
if '://' not in url:
|
||||
url = 'http://' + url
|
||||
url = 'https://' + url
|
||||
return '<a href="%s"><span foreground="%s">%s</span></a>' % (
|
||||
url, color, match.group())
|
||||
|
||||
|
|
|
@ -561,10 +561,10 @@ class ConversationTextview(GObject.GObject):
|
|||
|
||||
always_use_en = app.config.get('always_english_wikipedia')
|
||||
if always_use_en:
|
||||
link = 'http://en.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||
link = 'https://en.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||
% phrase_for_url
|
||||
else:
|
||||
link = 'http://%s.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||
link = 'https://%s.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||
% (i18n.get_short_lang_code(), phrase_for_url)
|
||||
item = Gtk.MenuItem.new_with_mnemonic(_('Read _Wikipedia Article'))
|
||||
id_ = item.connect('activate', self.visit_url_from_menuitem, link)
|
||||
|
@ -577,10 +577,10 @@ class ConversationTextview(GObject.GObject):
|
|||
# special link (yeah undocumented but default)
|
||||
always_use_en = app.config.get('always_english_wiktionary')
|
||||
if always_use_en:
|
||||
link = 'http://en.wiktionary.org/wiki/Special:Search?search=%s'\
|
||||
link = 'https://en.wiktionary.org/wiki/Special:Search?search=%s'\
|
||||
% phrase_for_url
|
||||
else:
|
||||
link = 'http://%s.wiktionary.org/wiki/Special:Search?search=%s'\
|
||||
link = 'https://%s.wiktionary.org/wiki/Special:Search?search=%s'\
|
||||
% (i18n.get_short_lang_code(), phrase_for_url)
|
||||
id_ = item.connect('activate', self.visit_url_from_menuitem, link)
|
||||
self.handlers[id_] = item
|
||||
|
|
Loading…
Add table
Reference in a new issue