From bce99008fb019c8407714f56b473febf2e19d928 Mon Sep 17 00:00:00 2001 From: esheri3 Date: Thu, 25 Jan 2007 20:21:24 +0000 Subject: [PATCH] Added Aspect logo. git-svn-id: http://webgoat.googlecode.com/svn/trunk@94 4033779f-a91e-0410-96ef-6bf7bf53c507 --- .../owasp/webgoat/lessons/SQLInjection/SQLInjection.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SQLInjection/SQLInjection.java b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SQLInjection/SQLInjection.java index 9e9edd91e..5b45d6c8e 100644 --- a/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SQLInjection/SQLInjection.java +++ b/ webgoat/main/project/JavaSource/org/owasp/webgoat/lessons/SQLInjection/SQLInjection.java @@ -7,7 +7,9 @@ import java.util.Hashtable; import java.util.List; import java.util.Map; +import org.apache.ecs.Element; import org.apache.ecs.ElementContainer; +import org.apache.ecs.html.IMG; import org.owasp.webgoat.lessons.AbstractLesson; import org.owasp.webgoat.lessons.Category; import org.owasp.webgoat.lessons.LessonAction; @@ -56,7 +58,8 @@ import org.owasp.webgoat.session.WebSession; */ public class SQLInjection extends LessonAdapter { - + public final static IMG ASPECT_LOGO = new IMG("images/logos/aspect.jpg").setAlt("Aspect Security").setBorder(0).setHspace(0).setVspace(0); + public final static String DESCRIPTION = "description"; public final static String DISCIPLINARY_DATE = "disciplinaryDate"; @@ -435,4 +438,8 @@ public class SQLInjection extends LessonAdapter return super.getSourceFileName(); } + public Element getCredits() + { + return super.getCustomCredits("", ASPECT_LOGO); + } }