Skip to content

Commit b9736cf

Browse files
Upgrade jsoup
1 parent e40f339 commit b9736cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

jsoup/build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name := "dispatch-jsoup"
33
description :=
44
"Dispatch module providing jsoup html parsing support"
55

6-
libraryDependencies += "org.jsoup" % "jsoup" % "1.12.1"
6+
libraryDependencies += "org.jsoup" % "jsoup" % "1.18.1"

jsoup/src/main/scala/as/soup.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object Query {
1616
}
1717

1818
object Clean {
19-
import org.jsoup.safety.Whitelist
20-
def apply(wl: Whitelist): Response => String =
19+
import org.jsoup.safety.Safelist
20+
def apply(wl: Safelist): Response => String =
2121
{ r => Jsoup.clean(dispatch.as.String(r), r.getUri().toString, wl) }
2222
}

jsoup/src/test/scala/soup.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dispatch.spec
22

33
import org.scalacheck._
4-
import org.jsoup.safety.Whitelist
4+
import org.jsoup.safety.Safelist
55

66
object JsoupSpecification
77
extends Properties("Basic")
@@ -54,7 +54,7 @@ with DispatchCleanup {
5454
property("handle Cleaning") = forAll(Gen.alphaStr) { (sample: String) =>
5555
val clean = Http.default(
5656
localhost / "unclean" <<? Map("echo" -> sample) > as.jsoup.Clean(
57-
Whitelist.basic)
57+
Safelist.basic)
5858
)
5959
clean() == (SafeFormat format sample)
6060
}

0 commit comments

Comments
 (0)