Mercurial > repo
changeset 10283:7c07682dcc25
<oerjan> sled bin/url//s,[|].hg,|\\\\.hg,
author | HackBot |
---|---|
date | Thu, 16 Feb 2017 02:57:13 +0000 |
parents | f872c7ab4698 |
children | 2f9de4e9c39e |
files | bin/url |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/url Thu Feb 16 02:34:44 2017 +0000 +++ b/bin/url Thu Feb 16 02:57:13 2017 +0000 @@ -5,7 +5,7 @@ else: f = os.path.abspath(sys.argv[1]) f = re.sub(r"^/+hackenv/", "", f) - if re.match(r"/|.hg(?:/|$)",f): + if re.match(r"/|\.hg(?:/|$)",f): sys.exit("File is outside web-viewable filesystem repository.") elif re.match(r"tmp(?:/|$)",f): print ("http://www2.codu.org/projects/hackbot/" + urllib.quote(f))