Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2008-01-24 05:33:30 +0000
committerrelves2008-01-24 05:33:30 +0000
commitaaa3da7a726f1e71024926ae557ef38b54cf9ccd (patch)
tree5ef727d227309ce4ac7cf08c7906ad96e6f688d9
parent7d999ebff8b6c85d8e71dac35af568e6a431f955 (diff)
downloadorg.eclipse.mylyn.tasks-aaa3da7a726f1e71024926ae557ef38b54cf9ccd.tar.gz
org.eclipse.mylyn.tasks-aaa3da7a726f1e71024926ae557ef38b54cf9ccd.tar.xz
org.eclipse.mylyn.tasks-aaa3da7a726f1e71024926ae557ef38b54cf9ccd.zip
NEW - bug 215910: [patch] Replace HtmlStreamTokenizer.unescape with StringEscapeUtils.unescapeHtml
https://bugs.eclipse.org/bugs/show_bug.cgi?id=215910
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/BugzillaTaskHistoryParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/BugzillaTaskHistoryParser.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/BugzillaTaskHistoryParser.java
index e31c88e28..33b7a8cfd 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/BugzillaTaskHistoryParser.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/history/BugzillaTaskHistoryParser.java
@@ -20,6 +20,7 @@ import java.util.Locale;
import javax.security.auth.login.LoginException;
+import org.apache.commons.lang.StringEscapeUtils;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaLanguageSettings;
import org.eclipse.mylyn.web.core.HtmlStreamTokenizer;
import org.eclipse.mylyn.web.core.HtmlTag;
@@ -205,7 +206,7 @@ public class BugzillaTaskHistoryParser {
if (token.getType() == Token.TAG) {
tag = (HtmlTag) token.getValue();
if (tag.getTagType() == HtmlTag.Type.TD && tag.isEndTag()) {
- String data = HtmlStreamTokenizer.unescape(sb.toString());
+ String data = StringEscapeUtils.unescapeHtml(sb.toString());
if (data.startsWith("\n") && (data.contains("Attachment") == false)) {
data = ""; // empty field
}

Back to the top