changeset 8133:e5e09208e894

<oerjan> ` sed -i \'8s/.hg/(?:.hg|tmp)/\' bin/url
author HackBot
date Wed, 25 May 2016 01:35:00 +0000
parents 5acb4c323520
children 0c0ed6dacf33
files bin/url
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/url	Wed May 25 01:13:51 2016 +0000
+++ b/bin/url	Wed May 25 01:35:00 2016 +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|tmp)(?:/|$)",f):
         sys.exit("File is outside web-viewable filesystem repository.")
     else:
         print ("http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/" +