提交 cdbe303d 编写于 作者: S StevenGBrown

[FIXED HUDSON-6897] The file parameter name is now encoded before used within the download URL.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32431 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a0c958b6
......@@ -27,7 +27,10 @@ THE SOFTWARE.
xmlns:i="jelly:fmt" xmlns:p="/lib/hudson/project">
<f:entry title="${it.name}">
<j:if test="${it.originalFileName != null}">
<a href="parameter/${it.name}/${it.originalFileName}">${it.originalFileName}</a>
<j:invokeStatic var="encodedName" className="hudson.Util" method="rawEncode">
<j:arg value="${it.name}" />
</j:invokeStatic>
<a href="parameter/${encodedName}/${it.originalFileName}">${it.originalFileName}</a>
</j:if>
</f:entry>
</j:jelly>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册