Skip to content

Commit

Permalink
Changed the layout of the lesson. The congratulation sentence is now …
Browse files Browse the repository at this point in the history
…displayed in "red". See WEB-46
  • Loading branch information
nbaars committed Sep 6, 2014
1 parent 91029ed commit 8ae1204
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
/nb-configuration.xml
/nbactions.xml
/nbactions.xml
/target/
/.classpath
/.project
/.settings/.jsdtscope
/.settings/org.eclipse.jdt.core.prefs
/.settings/org.eclipse.m2e.core.prefs
/.settings/org.eclipse.wst.common.component
/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
/.settings/org.eclipse.wst.common.project.facet.core.xml
/.settings/org.eclipse.wst.jsdt.ui.superType.container
/.settings/org.eclipse.wst.jsdt.ui.superType.name
/.settings/org.eclipse.wst.validation.prefs
3 changes: 3 additions & 0 deletions src/main/java/org/owasp/webgoat/lessons/HttpBasics.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import java.util.ArrayList;
import java.util.List;

import org.apache.ecs.Element;
import org.apache.ecs.ElementContainer;
import org.apache.ecs.StringElement;
import org.apache.ecs.html.BR;
import org.apache.ecs.html.Input;
import org.owasp.webgoat.session.ECSFactory;
import org.owasp.webgoat.session.WebSession;
Expand Down Expand Up @@ -58,6 +60,7 @@ protected Element createContent(WebSession s) {

StringBuffer person = null;
try {
ec.addElement(new BR());
ec.addElement(new StringElement(WebGoatI18N.get("EnterYourName") + ": "));

person = new StringBuffer(s.getParser().getStringParameter(PERSON, ""));
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -794,4 +794,9 @@ fieldset[disabled] .btn-warning.active {
padding: 3px;
max-width: 200px;
font-size: x-small;
}

.info {
color:#e84c3d;
font-weight: bold;
}
6 changes: 3 additions & 3 deletions src/main/webapp/lesson_plans/English/HttpBasics.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p>
<b>How HTTP works:</b>
</p>
All HTTP transactions follow the same general format. Each client request and server response has three parts: the request or response line, a header section, and the entity body. The client initiates a transaction as follows: <br>
All HTTP transactions follow the same general format. Each client request and server response has three parts: the request or response line, a header section and the entity body. The client initiates a transaction as follows: <br>
<br>
The client contacts the server and sends a document request <br>
</div>
Expand All @@ -20,8 +20,8 @@
After sending the request and headers, the client may send additional data. This data is mostly used by CGI programs using the POST method.<br>
<p><b>General Goal(s):</b> </p>
<!-- Start Instructions -->
Enter your name in the input field below and press "go" to submit. The server will accept the request, reverse the input, and display it back to the user, illustrating the basics of handling an HTTP request.
Enter your name in the input field below and press "Go!" to submit. The server will accept the request, reverse the input and display it back to the user, illustrating the basics of handling an HTTP request.
<br/><br/>
The user should become familiar with the features of WebGoat by manipulating the above
buttons to view hints, show the HTTP request parameters, the HTTP request cookies, and the Java source code. You may also try using WebScarab for the first time.
buttons to view hints, show the HTTP request parameters, the HTTP request cookies, and the Java source code. You may also try using OWASP Zed Attack Proxy for the first time.
<!-- Stop Instructions -->

0 comments on commit 8ae1204

Please sign in to comment.