Skip to content

Commit

Permalink
Fixes #525
Browse files Browse the repository at this point in the history
  • Loading branch information
viyatb committed Jan 22, 2016
1 parent 1e473d0 commit 1fe7941
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/interface/custom_handlers.py
Expand Up @@ -61,13 +61,13 @@ def get(self, path, include_body=True):
{% if len(dirnames) > 0 %}
<h2>Directories</h2>
{% for item in dirnames %}
<li><a href="{{ item }}/">{{ item }}/</a></li>
<li><a href="{{ url_escape(item, plus=False) }}/">{{ item }}/</a></li>
{% end %}
{% end %}
{% if len(filenames) > 0 %}
<h2>Files</h2>
{% for item in filenames %}
<li><a href="{{ item }}">{{ item }}</a></li>
<li><a href="{{ url_escape(item, plus=False) }}">{{ item }}</a></li>
{% end %}
{% end %}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion framework/interface/templates/plugin_report.html
Expand Up @@ -94,7 +94,7 @@ <h4 id="header_badge_{{ test_code }}"></h4>
<td> {{ poutput['start_time'] }} <br />{{ poutput['end_time'] }} </td>
<td> {{ poutput['status'] }} </td>
{% if poutput['output_path'] %}
<td><a href="/output_files/{{ poutput['output_path'] }}/" target="_blank" class="btn btn-primary">Browse</a></td>
<td><a href="/output_files/{{ url_escape(poutput['output_path'], plus=True) }}/" target="_blank" class="btn btn-primary">Browse</a></td>
{% end %}
<td>
<div class="btn-group">
Expand Down
3 changes: 2 additions & 1 deletion framework/interface/ui_handlers.py
@@ -1,6 +1,7 @@
import os
import collections
import tornado.web
from tornado.escape import url_escape
import uuid
from framework.dependency_management.dependency_resolver import ServiceLocator
from framework.lib.exceptions import InvalidTargetReference, \
Expand Down Expand Up @@ -446,5 +447,5 @@ def get(self, file_url):
self.request.host.replace(
config.FrameworkConfigGet("UI_SERVER_PORT"),
config.FrameworkConfigGet("FILE_SERVER_PORT")))
redirect_file_url = output_files_server + file_url
redirect_file_url = output_files_server + url_escape(file_url, plus=False)
self.redirect(redirect_file_url, permanent=True)

0 comments on commit 1fe7941

Please sign in to comment.