Skip to content

Commit

Permalink
[FIXED JENKINS-19457]
Browse files Browse the repository at this point in the history
Merge remote-tracking branch 'origin/pr/934'
  • Loading branch information
kohsuke committed Sep 5, 2013
2 parents dfd6049 + 010f2dd commit b94cab3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -61,6 +61,9 @@
<li class=bug>
When copying a directory from master to slave fails due to an error on the slave, properly report it.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-9540">issue 9540</a>)
<li class=rfe>
JavaScript error in the checkUrl computation shouldn't break the job configuration page.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-19457">issue 19457</a>)
<li class=rfe>
Annotate the Advanced section if some fields are already customized.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-3107">issue 3107</a>)
Expand Down
8 changes: 7 additions & 1 deletion war/src/main/webapp/scripts/hudson-behavior.js
Expand Up @@ -413,7 +413,13 @@ function registerValidator(e) {
var depends = this.getAttribute("checkDependsOn");

if (depends==null) {// legacy behaviour where checkUrl is a JavaScript
return eval(url); // need access to 'this', so no 'geval'
try {
return eval(url); // need access to 'this', so no 'geval'
} catch (e) {
if (window.console!=null) console.warn("Legacy checkUrl '" + url + "' is not valid Javascript: "+e);
if (window.YUI!=null) YUI.log("Legacy checkUrl '" + url + "' is not valid Javascript: "+e,"warn");
return url; // return plain url as fallback
}
} else {
var q = qs(this).addThis();
if (depends.length>0)
Expand Down

0 comments on commit b94cab3

Please sign in to comment.