[Xss-html-filter-commits] SF.net SVN: xss-html-filter:[31] trunk/src/main/java/net/sf/xsshtmlfilter
Brought to you by:
micksembwever
|
From: <mic...@us...> - 2011-06-03 14:40:40
|
Revision: 31
http://xss-html-filter.svn.sourceforge.net/xss-html-filter/?rev=31&view=rev
Author: micksembwever
Date: 2011-06-03 14:40:34 +0000 (Fri, 03 Jun 2011)
Log Message:
-----------
(again) use Matcher.quoteReplacement(..) for all m.appendReplacement(..) calls. xss-html-filter isn't intended to capture and replace groups, just filter.
Modified Paths:
--------------
trunk/src/main/java/net/sf/xsshtmlfilter/HTMLFilter.java
Modified: trunk/src/main/java/net/sf/xsshtmlfilter/HTMLFilter.java
===================================================================
--- trunk/src/main/java/net/sf/xsshtmlfilter/HTMLFilter.java 2011-06-03 12:46:53 UTC (rev 30)
+++ trunk/src/main/java/net/sf/xsshtmlfilter/HTMLFilter.java 2011-06-03 14:40:34 UTC (rev 31)
@@ -442,7 +442,7 @@
while (m.find()) {
final String match = m.group(1);
final int decimal = Integer.decode(match).intValue();
- m.appendReplacement(buf, chr(decimal));
+ m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal)));
}
m.appendTail(buf);
s = buf.toString();
@@ -452,7 +452,7 @@
while (m.find()) {
final String match = m.group(1);
final int decimal = Integer.valueOf(match, 16).intValue();
- m.appendReplacement(buf, chr(decimal));
+ m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal)));
}
m.appendTail(buf);
s = buf.toString();
@@ -462,7 +462,7 @@
while (m.find()) {
final String match = m.group(1);
final int decimal = Integer.valueOf(match, 16).intValue();
- m.appendReplacement(buf, chr(decimal));
+ m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal)));
}
m.appendTail(buf);
s = buf.toString();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|