Skip to content

Commit

Permalink
fixup! viewer: Handle percent-encode filenames with spaces
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
chfoo committed Feb 9, 2015
1 parent 60a66e7 commit 1504261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viewer/archivebotviewer/templates/domains.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</tr>
{% for domain in domains %}
<tr>
<td><a href="{{ reverse_url('domain', url_escape(domain)) }}">{{ domain }}</a></td>
<td><a href="{{ reverse_url('domain', url_escape(domain, plus=False)) }}">{{ domain }}</a></td>
</tr>
{% end %}
</table>
Expand Down
2 changes: 1 addition & 1 deletion viewer/archivebotviewer/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% if search_results %}
{% for result_type, job_id, domain, url in search_results %}
{% if result_type == "domain" %}
<a href="{{ reverse_url('domain', domain) }}">{{ domain }}</a>
<a href="{{ reverse_url('domain', url_escape(domain, plus=False)) }}">{{ domain }}</a>
<i>{{ url or '' }}</i>
{% else %}
<a href="{{ reverse_url('job', job_id) }}">{{ job_id }}</a>
Expand Down

0 comments on commit 1504261

Please sign in to comment.