Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aabf4b4

Browse files
committedJan 3, 2018
Import series: decode URL before showing to user.
[ci skip]
1 parent bec837e commit aabf4b4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed
 

‎src/main/webapp/WEB-INF/views/series/import/info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h3 th:text="${#strings.capitalize(header)}">
6969
<dt th:text="#{t_url}">
7070
URL
7171
</dt>
72-
<dd id="request-url" th:text="${request.url}">
72+
<dd id="request-url" th:text="${#uris.unescapePath(request.url)}">
7373
http://example.com/my-first-series.html
7474
</dd>
7575
<dt th:text="#{t_status}">

‎src/main/webapp/WEB-INF/views/series/import/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h3 th:text="${#strings.capitalize(header)}">
9898
/*/-->
9999
</td>
100100
<td>
101-
<a href="./info.html" th:href="@{${REQUEST_IMPORT_PAGE}(id=${request.id})}" th:text="${request.url}">
101+
<a href="./info.html" th:href="@{${REQUEST_IMPORT_PAGE}(id=${request.id})}" th:text="${#uris.unescapePath(request.url)}">
102102
http://example.com/my-first-series.html
103103
</a>
104104
</td>

‎src/main/webapp/WEB-INF/views/series/info.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,11 @@
316316
Imported from
317317
</dt>
318318
<dd id="import-info">
319-
<a href="./import/info.html" th:href="@{${REQUEST_IMPORT_PAGE}(id=${importInfo.requestId})}" th:text="${importInfo.url}">http://example.com/my-first-series.html</a>
319+
<a href="./import/info.html"
320+
th:href="@{${REQUEST_IMPORT_PAGE}(id=${importInfo.requestId})}"
321+
th:text="${#uris.unescapePath(importInfo.url)}">
322+
http://example.com/my-first-series.html
323+
</a>
320324
</dd>
321325
<!--/*/ </th:block> /*/-->
322326

0 commit comments

Comments
 (0)
Please sign in to comment.