Parcourir la source

fix fortune test

Damien Solimando il y a 9 ans
Parent
commit
ebdb2dc3aa
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      frameworks/Groovy/hot/shows/example.show.groovy

+ 1 - 1
frameworks/Groovy/hot/shows/example.show.groovy

@@ -60,7 +60,7 @@ rest.get('/fortunes/mongodb').then {
 	}.then { fortunes ->
 		fortunes.each {
 			it._id = Float.parseFloat(it._id) as Integer
-			it.message = StringEscapeUtils.escapeHtml("<script>alert(\"${it.message}\")</script>")
+			it.message = StringEscapeUtils.escapeHtml(it.message})
 		}
 		fortunes.sort { it.message }