X-Git-Url: https://git.llucax.com/personal/website.git/blobdiff_plain/32cb310b42235f42ba8f9f70bb7ba3fe07b99377..026ddd134c2a47ab83069548c56f2e3d4cc04464:/source/blog/blog.cgi diff --git a/source/blog/blog.cgi b/source/blog/blog.cgi index f59201a..0875ea7 100755 --- a/source/blog/blog.cgi +++ b/source/blog/blog.cgi @@ -548,7 +548,7 @@ def valid_link(link): if re.match(mail_re, link, re.I): return 'mailto:' + link elif re.match(url_re, link, re.I): - return 'http://' + link + return 'https://' + link return None @@ -563,7 +563,7 @@ try: s = os.environ['SCRIPT_NAME'] if p == '80': p = '' else: p = ':' + p - full_url = 'http://%s%s%s' % (n, p, s) + full_url = 'https://%s%s%s' % (n, p, s) except KeyError: full_url = 'Not needed' @@ -927,51 +927,21 @@ class Article (object): import re rst = re.sub(r'.. youtube:: (.*)', r'''.. raw:: html -
- - - - - - -
''', rst) + + ''', rst) rst = re.sub(r'.. vimeo:: (\w*)', r'''.. raw:: html -
- - - - - - - -
''', rst) + + ''', rst) rst = re.sub(r'.. grooveshark:: (\w*)', r'''.. raw:: html -
- - - - - - - -
''', rst) + Grooveshark is no more! This was supposed to show \1. + ''', rst) return rst_to_html(rst) def to_vars(self):