Mon Apr 16 09:13:34 UTC 2007 Alexandre Rossi <alexandre.rossi@gmail.com>
* only read the first line of _darcs/third_party/darcsweb/* files
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2015-10-27 13:42:09.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2015-10-27 13:42:10.000000000 +0000
@@ -2232,7 +2232,7 @@
dpath = fulldir + \
'/_darcs/third_party/darcsweb/desc'
if os.access(dpath, os.R_OK):
- desc = open(dpath).read()
+ desc = open(dpath).readline().rstrip("\n")
else:
desc = c.repodesc % { 'name': name }
else:
@@ -2242,7 +2242,7 @@
dpath = fulldir + \
'/_darcs/third_party/darcsweb/url'
if os.access(dpath, os.R_OK):
- url = open(dpath).read()
+ url = open(dpath).readline().rstrip("\n")
else:
url = c.repourl % { 'name': name }
else:
@@ -2252,7 +2252,7 @@
dpath = fulldir + \
'/_darcs/third_party/darcsweb/projurl'
if os.access(dpath, os.R_OK):
- projurl = open(dpath).read()
+ projurl = open(dpath).readline().rstrip("\n")
elif 'repoprojurl' in dir(c):
projurl = c.repoprojurl % {'name': name}
else: