Author: nbelaevski
Date: 2008-06-20 10:15:20 -0400 (Fri, 20 Jun 2008)
New Revision: 9142
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
Log:
Proper escapement for JavaScript parameters added
Modified: trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java
===================================================================
---
trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java 2008-06-20
14:13:01 UTC (rev 9141)
+++
trunk/framework/impl/src/main/java/org/richfaces/component/util/HtmlUtil.java 2008-06-20
14:15:20 UTC (rev 9142)
@@ -77,7 +77,7 @@
if (target != null) {
matcher.appendReplacement(sb, "#"
+ target.getClientId(context).replaceAll(":",
- "\\\\\\\\\\\\\\\\:"));
+ "\\\\\\\\:"));
}
}
matcher.appendTail(sb);