# HG changeset patch # User HackBot # Date 1489195473 0 # Node ID 31fc0eb7ea452893eb19a09aaedbbe4e857a8db3 # Parent d095000357823ec52f5b495966186bcf6c747c67 sled bin/url//s,http,https,g diff -r d09500035782 -r 31fc0eb7ea45 bin/url --- a/bin/url Fri Mar 10 23:57:24 2017 +0000 +++ b/bin/url Sat Mar 11 01:24:33 2017 +0000 @@ -1,14 +1,14 @@ #!/usr/bin/env python import sys, os.path, re, urllib if len(sys.argv) <= 1: - print "http://hackego.esolangs.org/fshg/" + print "https://hackego.esolangs.org/fshg/" else: f = os.path.abspath(sys.argv[1]) f = re.sub(r"^/+hackenv/", "", f) if re.match(r"/|\.hg(?:/|$)",f): sys.exit("File is outside web-viewable filesystem repository.") elif re.match(r"tmp(?:/|$)",f): - print ("http://hackego.esolangs.org/" + urllib.quote(f)) + print ("https://hackego.esolangs.org/" + urllib.quote(f)) else: - print ("http://hackego.esolangs.org/fshg/index.cgi/file/tip/" + + print ("https://hackego.esolangs.org/fshg/index.cgi/file/tip/" + urllib.quote(f))