From af66f4ff002eaab0a1aa09befb42c3e5667c1e66 Mon Sep 17 00:00:00 2001 From: esheri3 Date: Thu, 25 Jan 2007 20:41:41 +0000 Subject: [PATCH] Minor grammar fixes. git-svn-id: http://webgoat.googlecode.com/svn/trunk@98 4033779f-a91e-0410-96ef-6bf7bf53c507 --- .../org/owasp/webgoat/lessons/JSONInjection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java index 4677ce1c8..94aa74392 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/JSONInjection.java @@ -79,9 +79,9 @@ public class JSONInjection extends LessonAdapter + lineSep + "\"flights\": [" + lineSep - + "{\"stops\": \"0\", \"transit\" : \"N/A\", \"price\": \"600$\"}," + + "{\"stops\": \"0\", \"transit\" : \"N/A\", \"price\": \"$600\"}," + lineSep - + "{\"stops\": \"2\", \"transit\" : \"Newark,Chicago\", \"price\": \"300$\"} " + + "{\"stops\": \"2\", \"transit\" : \"Newark,Chicago\", \"price\": \"$300\"} " + lineSep + "]" + lineSep + "}"; s.getResponse().setContentType("text/html"); s.getResponse().setHeader("Cache-Control", "no-cache"); @@ -267,7 +267,7 @@ public class JSONInjection extends LessonAdapter else { s - .setMessage("You are close, try to set the price for the non-stop flight to be less than 600$"); + .setMessage("You are close, try to set the price for the non-stop flight to be less than $600"); } } return ec; @@ -290,7 +290,7 @@ public class JSONInjection extends LessonAdapter hints.add("JSON stands for JavaScript Object Notation."); hints.add("JSON is a way of representing data just like XML."); hints.add("The JSON payload is easily interceptable."); - hints.add("Intercept the reply, change the 600$ to 25$."); + hints.add("Intercept the reply, change the $600 to $25."); return hints; }