Explorar o código

fix fortune test

Damien Solimando %!s(int64=9) %!d(string=hai) anos
pai
achega
ebdb2dc3aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 }