You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2009/09/23 03:39:57 UTC
svn commit: r817920 -
/wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java
Author: ivaynberg
Date: Wed Sep 23 01:39:57 2009
New Revision: 817920
URL: http://svn.apache.org/viewvc?rev=817920&view=rev
Log:
WICKET-2458
Issue: WICKET-2458
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java
Modified: wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java?rev=817920&r1=817919&r2=817920&view=diff
==============================================================================
--- wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java (original)
+++ wicket/trunk/wicket/src/main/java/org/apache/wicket/util/string/JavascriptUtils.java Wed Sep 23 01:39:57 2009
@@ -76,7 +76,7 @@
/**
- * Escape quotes and double quotes so that they can be part of e.g. an alert call.
+ * Escape single and double quotes so that they can be part of e.g. an alert call.
*
* @param input
* input
@@ -88,6 +88,7 @@
if (s != null)
{
s = Strings.replaceAll(s, "'", "\\'");
+ s = Strings.replaceAll(s, "\"", "\\\"");
}
return s;
}