app/publisher: remove useless urlquery escaper

According to https://golang.org/pkg/html/template/#ErrorCode
(ErrPredefinedEscaper), the template engine already performs
sanitization equivalent to urlquery on any pipeline, and therefore makes
this extra urlquery call unnecessary, and even maybe harmful.

Change-Id: I7fcce395bf015b64022d1ac66b42069cdefb69eb
This commit is contained in:
mpl 2017-10-04 18:41:26 +02:00
parent 00bc12d403
commit c3e7fc8002
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<script>RenderFile();</script>
{{else}}
{{if $membersData := call .Members}}
<div><a href='{{$membersData.SubjectPath}}/=z/{{$membersData.ZipName | urlquery}}'>{{$membersData.ZipName}}</a></div>
<div><a href='{{$membersData.SubjectPath}}/=z/{{$membersData.ZipName}}'>{{$membersData.ZipName}}</a></div>
<div id="blobitemcontainer"><ul id="members"></ul></div>
<script>RenderMembers();</script>
{{end}}