Skip to content

Commit

Permalink
[FIXED JENKINS-8058] Role Strategy Plugin doesn't support "<" and ">"…
Browse files Browse the repository at this point in the history
… characters in regular expression
  • Loading branch information
rseguy committed Aug 29, 2011
1 parent 2eb8b2f commit d182e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -197,7 +197,7 @@
this.innerHTML = '<input type="text" name="[pattern]" value="' + this.childNodes[1].value + '" size="' + (this.childNodes[1].value.length+10) + '"/>';
}
else {
this.innerHTML = this.childNodes[0].value + '<input type="hidden" name="[pattern]" value="' + this.childNodes[0].value + '"/>';
this.innerHTML = this.childNodes[0].value.escapeHTML() + '<input type="hidden" name="[pattern]" value="' + this.childNodes[0].value + '"/>';
}
return false;
}
Expand Down
Expand Up @@ -2,7 +2,7 @@
- The MIT License
-
- Copyright (c) 2010-2011, Manufacture Française des Pneumatiques Michelin,
- Thomas Maurel, Romain Seguy
- Thomas Maurel, Romain Seguy, Timothy Bingaman
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,7 +23,6 @@
- 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:f="/lib/form" xmlns:local="local">
<l:layout permission="${app.ADMINISTER}" norefresh="true">
Expand All @@ -46,7 +45,7 @@
<td class="left-most">${title}</td>
<j:if test="${!attrs.global}">
<td width="*" class="in-place-edit">
${attrs.role.pattern}
${h.escape(attrs.role.pattern.toString())}
<input type="hidden" name="[pattern]" value="${attrs.role.pattern}" />
</td>
</j:if>
Expand Down

0 comments on commit d182e2a

Please sign in to comment.