Skip to content

Commit

Permalink
Jsoup
Browse files Browse the repository at this point in the history
  • Loading branch information
haarli committed Mar 16, 2023
1 parent 7735c9d commit dd8684b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/mpg/imeji/logic/util/StringHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import org.apache.commons.codec.digest.DigestUtils;
import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;
import org.jsoup.safety.Safelist;

import de.mpg.imeji.exceptions.ImejiException;

Expand Down Expand Up @@ -139,7 +139,7 @@ public static boolean hasInvalidTags(String s) {
if (StringHelper.isNullOrEmptyTrim(s)) {
return false;
}
if (!Jsoup.isValid(s, Whitelist.relaxed())) {
if (!Jsoup.isValid(s, Safelist.relaxed())) {
return true;
}
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/mpg/imeji/presentation/beans/UtilBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import javax.faces.bean.ManagedBean;

import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;
import org.jsoup.safety.Safelist;

import de.mpg.imeji.logic.config.Imeji;
import de.mpg.imeji.logic.config.ImejiProperties;
Expand Down Expand Up @@ -38,7 +38,7 @@ public String getBaseUri() {
}

public String cleanHtml(String s) {
return Jsoup.clean(s, Whitelist.basic());
return Jsoup.clean(s, Safelist.basic());
}

}

0 comments on commit dd8684b

Please sign in to comment.