提交 ba3a27a4 编写于 作者: S sogabe

[FIXED HUDSON-3392] use encodeURIComponent, not escape. escape breaks Japanese parameter value.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20550 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0fdf2b84
......@@ -32,7 +32,7 @@ THE SOFTWARE.
<l:main-panel>
<f:form method="post" action="createView" name="createView">
<f:entry title="${%View name}">
<f:textbox id="name" name="name" checkUrl="'${rootURL}/viewExistsCheck?value='+escape(this.value)"
<f:textbox id="name" name="name" checkUrl="'${rootURL}/viewExistsCheck?value='+encodeURIComponent(this.value)"
onchange="updateOk(this.form)" onkeyup="updateOk(this.form)" />
<script>
$('name').focus();
......
......@@ -35,7 +35,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
<s:form method="post" action="createItem">
<s:entry title="${nameTitle}">
<s:textbox id="name" name="name" checkUrl="'${rootURL}/${checkUrl}?value='+escape(this.value)"
<s:textbox id="name" name="name" checkUrl="'${rootURL}/${checkUrl}?value='+encodeURIComponent(this.value)"
onchange="updateOk(this.form)" onkeyup="updateOk(this.form)" />
<script>$('name').focus();</script>
</s:entry>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册