Skip to content

Commit

Permalink
upgrade jsoup and snakeyaml version (#3374)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Aguilera <jorge.aguilera@seqera.io>
  • Loading branch information
jorgeaguileraseqera committed Nov 11, 2022
1 parent 34f133e commit 6e2ca45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/nextflow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ dependencies {
api('org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r')
api ('javax.activation:activation:1.1.1')
api ('javax.mail:mail:1.4.7')
api ('org.yaml:snakeyaml:1.30')
api ('org.jsoup:jsoup:1.14.3')
api ('org.yaml:snakeyaml:1.33')
api ('org.jsoup:jsoup:1.15.3')
api 'jline:jline:2.9'
api 'org.pf4j:pf4j:3.4.1'
api 'dev.failsafe:failsafe:3.1.0'
Expand Down
4 changes: 2 additions & 2 deletions modules/nextflow/src/main/groovy/nextflow/mail/Mailer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import nextflow.util.Duration
import org.jsoup.Jsoup
import org.jsoup.nodes.Document
import org.jsoup.parser.Parser
import org.jsoup.safety.Whitelist
import org.jsoup.safety.Safelist
/**
* This class implements the send mail functionality
*
Expand Down Expand Up @@ -396,7 +396,7 @@ class Mailer {
document.select("br").append("\\n");
document.select("p").prepend("\\n");
String s = document.html().replaceAll("\\\\n", "\n");
def result = Jsoup.clean(s, "", Whitelist.none(), new Document.OutputSettings().prettyPrint(false));
def result = Jsoup.clean(s, "", Safelist.none(), new Document.OutputSettings().prettyPrint(false));
Parser.unescapeEntities(result, false)
}

Expand Down

0 comments on commit 6e2ca45

Please sign in to comment.