forked from Archives/Athou_commafeed
let everything settle a little while longer
This commit is contained in:
@@ -102,7 +102,7 @@ public class FeedRefreshTaskGiver {
|
||||
public void start() {
|
||||
try {
|
||||
// sleeping for a little while, let everything settle
|
||||
Thread.sleep(5000);
|
||||
Thread.sleep(60000);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("interrupted while sleeping");
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class FeedUtils {
|
||||
return string;
|
||||
}
|
||||
|
||||
private static Whitelist buildWhiteList() {
|
||||
private static synchronized Whitelist buildWhiteList() {
|
||||
Whitelist whitelist = new Whitelist();
|
||||
whitelist.addTags("a", "b", "blockquote", "br", "caption", "cite", "code", "col", "colgroup", "dd", "div", "dl", "dt", "em", "h1",
|
||||
"h2", "h3", "h4", "h5", "h6", "i", "iframe", "img", "li", "ol", "p", "pre", "q", "small", "strike", "strong", "sub", "sup",
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.google.gwt.thirdparty.guava.common.collect.Maps;
|
||||
public class HtmlEntities {
|
||||
public static final Map<String, String> NUMERIC_MAPPING = Collections.unmodifiableMap(loadMap());
|
||||
|
||||
private static Map<String, String> loadMap() {
|
||||
private static synchronized Map<String, String> loadMap() {
|
||||
Map<String, String> map = Maps.newLinkedHashMap();
|
||||
map.put("Á", "Á");
|
||||
map.put("á", "á");
|
||||
|
||||
Reference in New Issue
Block a user