Show More
@@ -304,8 +304,8 b' class hgweb(object):' | |||
|
304 | 304 | parts = parts[len(repo_parts):] |
|
305 | 305 | query = '/'.join(parts) |
|
306 | 306 | else: |
|
307 |
query = req.env['QUERY_STRING']. |
|
|
308 |
query = query. |
|
|
307 | query = req.env['QUERY_STRING'].partition('&')[0] | |
|
308 | query = query.partition(';')[0] | |
|
309 | 309 | |
|
310 | 310 | # process this if it's a protocol request |
|
311 | 311 | # protocol bits don't need to create any URLs |
@@ -80,7 +80,7 b' class wsgirequest(object):' | |||
|
80 | 80 | if self._start_response is not None: |
|
81 | 81 | self.headers.append(('Content-Type', type)) |
|
82 | 82 | if filename: |
|
83 |
filename = (filename. |
|
|
83 | filename = (filename.rpartition('/')[-1] | |
|
84 | 84 | .replace('\\', '\\\\').replace('"', '\\"')) |
|
85 | 85 | self.headers.append(('Content-Disposition', |
|
86 | 86 | 'inline; filename="%s"' % filename)) |
@@ -1248,7 +1248,7 b' def graph(web, req, tmpl):' | |||
|
1248 | 1248 | def _getdoc(e): |
|
1249 | 1249 | doc = e[0].__doc__ |
|
1250 | 1250 | if doc: |
|
1251 |
doc = _(doc). |
|
|
1251 | doc = _(doc).partition('\n')[0] | |
|
1252 | 1252 | else: |
|
1253 | 1253 | doc = _('(no help text available)') |
|
1254 | 1254 | return doc |
@@ -1278,7 +1278,7 b' def help(web, req, tmpl):' | |||
|
1278 | 1278 | yield {'topic': entries[0], 'summary': summary} |
|
1279 | 1279 | |
|
1280 | 1280 | early, other = [], [] |
|
1281 |
primary = lambda s: s. |
|
|
1281 | primary = lambda s: s.partition('|')[0] | |
|
1282 | 1282 | for c, e in commands.table.iteritems(): |
|
1283 | 1283 | doc = _getdoc(e) |
|
1284 | 1284 | if 'DEPRECATED' in doc or c.startswith('debug'): |
General Comments 0
You need to be logged in to leave comments.
Login now