Author: mrdon
Date: Thu Apr 28 12:30:34 2005
New Revision: 165186
URL: http://svn.apache.org/viewcvs?rev=165186&view=rev
Log:
Fixed escaping slashes being lost when escaping quotes - thanks Corey
Modified:
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/JavascriptValidatorTag.java
Modified:
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/JavascriptValidatorTag.java
URL:
http://svn.apache.org/viewcvs/struts/taglib/trunk/src/java/org/apache/struts/taglib/html/JavascriptValidatorTag.java?rev=165186&r1=165185&r2=165186&view=diff
==============================================================================
---
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/JavascriptValidatorTag.java
(original)
+++
struts/taglib/trunk/src/java/org/apache/struts/taglib/html/JavascriptValidatorTag.java
Thu Apr 28 12:30:34 2005
@@ -518,7 +518,7 @@
}
String varValueEscaped = ValidatorUtils.replace(varValue,
"\\", "\\\\");
- varValueEscaped = ValidatorUtils.replace(varValue, "\"",
"\\\"");
+ varValueEscaped = ValidatorUtils.replace(varValueEscaped,
"\"", "\\\"");
if (Var.JSTYPE_INT.equalsIgnoreCase(jsType)) {
results.append(
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]