Mercurial > repo
changeset 10395:c1a6de70613d
<oerjan> sled bin/hurl//s,http,https,g
author | HackBot |
---|---|
date | Sat, 11 Mar 2017 01:30:40 +0000 |
parents | ace1c1f6c46e |
children | d7f33d16256c |
files | bin/hurl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/hurl Sat Mar 11 01:28:38 2017 +0000 +++ b/bin/hurl Sat Mar 11 01:30:40 2017 +0000 @@ -1,12 +1,12 @@ #!/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|tmp)(?:/|$)",f): sys.exit("File is outside web-viewable filesystem repository.") else: - print ("http://hackego.esolangs.org/fshg/index.cgi/log/tip/" + + print ("https://hackego.esolangs.org/fshg/index.cgi/log/tip/" + urllib.quote(f))