Commits

Maximilian Albert  committed 1c8a812

Fix #201 (related to filename encoding) for other file types, too.

  • Participants
  • Parent commits 576a5c9

Comments (0)

Files changed (2)

File sumatra/web/templates/show_csv.html

 
 
 {% if truncated %}
-<p>File contents truncated. <a href="datafile?path={{path}}&digest={{digest}}&truncate=false" class="btn">Show entire contents</a></p>
+<p>File contents truncated. <a href="datafile?path={{path|urlencode}}&digest={{digest}}&truncate=false" class="btn">Show entire contents</a></p>
 {% endif %}
 
-<p><a href="download?path={{path}}&digest={{digest}}" class="btn">Download content</a></p>
+<p><a href="download?path={{path|urlencode}}&digest={{digest}}" class="btn">Download content</a></p>
 
 {{errmsg}}
 

File sumatra/web/templates/show_file.html

 </div>
 
 {% if truncated %}
-<p>File contents truncated. <a href="datafile?path={{path}}&digest={{digest}}&truncate=false" class="btn">Show entire contents</a></p>
+<p>File contents truncated. <a href="datafile?path={{path|urlencode}}&digest={{digest}}&truncate=false" class="btn">Show entire contents</a></p>
 {% endif %}
 
 {{errmsg}}
 {% if not errmsg %}
-<p><a href="download?path={{path}}&digest={{digest}}" class="btn">Download content</a></p>
+<p><a href="download?path={{path|urlencode}}&digest={{digest}}" class="btn">Download content</a></p>
 {% endif %}
 {% endblock %}