File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name := "dispatch-jsoup"
33description :=
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"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ object Query {
1616}
1717
1818object 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}
Original file line number Diff line number Diff line change 11package dispatch .spec
22
33import org .scalacheck ._
4- import org .jsoup .safety .Whitelist
4+ import org .jsoup .safety .Safelist
55
66object JsoupSpecification
77extends 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 }
You can’t perform that action at this time.
0 commit comments