Author: mrdon
Date: Thu Apr 28 14:41:45 2005
New Revision: 165208
URL: http://svn.apache.org/viewcvs?rev=165208&view=rev
Log:
Fixing value escape so that both backslashes and quotes are escaped
correctly
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
Modified:
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
URL:
http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java?rev=165208&r1=165207&r2=165208&view=diff
==============================================================================
---
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
(original)
+++
struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
Thu Apr 28 14:41:45 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]