Skip to content

Commit 8ae1204

Browse files
committed
Changed the layout of the lesson. The congratulation sentence is now displayed in "red". See WEB-46
1 parent 91029ed commit 8ae1204

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
/nb-configuration.xml
2-
/nbactions.xml
2+
/nbactions.xml
3+
/target/
4+
/.classpath
5+
/.project
6+
/.settings/.jsdtscope
7+
/.settings/org.eclipse.jdt.core.prefs
8+
/.settings/org.eclipse.m2e.core.prefs
9+
/.settings/org.eclipse.wst.common.component
10+
/.settings/org.eclipse.wst.common.project.facet.core.prefs.xml
11+
/.settings/org.eclipse.wst.common.project.facet.core.xml
12+
/.settings/org.eclipse.wst.jsdt.ui.superType.container
13+
/.settings/org.eclipse.wst.jsdt.ui.superType.name
14+
/.settings/org.eclipse.wst.validation.prefs

src/main/java/org/owasp/webgoat/lessons/HttpBasics.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import java.util.ArrayList;
44
import java.util.List;
5+
56
import org.apache.ecs.Element;
67
import org.apache.ecs.ElementContainer;
78
import org.apache.ecs.StringElement;
9+
import org.apache.ecs.html.BR;
810
import org.apache.ecs.html.Input;
911
import org.owasp.webgoat.session.ECSFactory;
1012
import org.owasp.webgoat.session.WebSession;
@@ -58,6 +60,7 @@ protected Element createContent(WebSession s) {
5860

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

6366
person = new StringBuffer(s.getParser().getStringParameter(PERSON, ""));

src/main/webapp/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,4 +794,9 @@ fieldset[disabled] .btn-warning.active {
794794
padding: 3px;
795795
max-width: 200px;
796796
font-size: x-small;
797+
}
798+
799+
.info {
800+
color:#e84c3d;
801+
font-weight: bold;
797802
}

src/main/webapp/lesson_plans/English/HttpBasics.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<p>
99
<b>How HTTP works:</b>
1010
</p>
11-
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>
11+
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>
1212
<br>
1313
The client contacts the server and sends a document request <br>
1414
</div>
@@ -20,8 +20,8 @@
2020
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>
2121
<p><b>General Goal(s):</b> </p>
2222
<!-- Start Instructions -->
23-
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.
23+
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.
2424
<br/><br/>
2525
The user should become familiar with the features of WebGoat by manipulating the above
26-
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.
26+
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.
2727
<!-- Stop Instructions -->

0 commit comments

Comments
 (0)