Fix more places where the email address was hard-coded

git-svn-id: http://webgoat.googlecode.com/svn/trunk@208 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
rogan.dawes 2007-07-25 12:56:35 +00:00
parent 6de7bd9ec9
commit b67bb702d2
6 changed files with 5 additions and 10 deletions

View File

@ -141,7 +141,7 @@ public class LessonSource extends HammerHead
} }
if (source == null) if (source == null)
{ {
return "Source code is not available. Contact webgoat@g2-inc.com"; return "Source code is not available. Contact " + s.getWebgoatContext().getFeedbackAddress();
} }
return (source.replaceAll("(?s)" + START_SOURCE_SKIP + ".*" return (source.replaceAll("(?s)" + START_SOURCE_SKIP + ".*"
+ END_SOURCE_SKIP, "Code Section Deliberately Omitted")); + END_SOURCE_SKIP, "Code Section Deliberately Omitted"));

View File

@ -544,11 +544,6 @@ public abstract class AbstractLesson extends Screen implements Comparable
Head head = new Head(); Head head = new Head();
head.addElement(new Title(getSourceFileName())); head.addElement(new Title(getSourceFileName()));
head.addElement(new StringElement(
"<meta name=\"Author\" content=\"Bruce Mayhew\">"));
head
.addElement(new StringElement(
"<link rev=\"made\" href=\"mailto:webgoat@g2-inc.com\">"));
Body body = new Body(); Body body = new Body();
body.addElement(new StringElement(src)); body.addElement(new StringElement(src));

View File

@ -52,7 +52,7 @@ public class WebgoatContext {
private boolean enterprise = false; private boolean enterprise = false;
private String feedbackAddress = "<A HREF=mailto:webgoat@g2-inc.com>webgoat@g2-inc.com</A>"; private String feedbackAddress = "<A HREF=mailto:webgoat@owasp.org>webgoat@owasp.org</A>";
private boolean isDebug = false; private boolean isDebug = false;

View File

@ -36,7 +36,7 @@
<context-param> <context-param>
<param-name>email</param-name> <param-name>email</param-name>
<param-value>WebGoat@g2-inc.com</param-value> <param-value>WebGoat@owasp.org</param-value>
<description> <description>
The EMAIL address of the administrator to whom questions The EMAIL address of the administrator to whom questions
and comments about this application should be addressed. and comments about this application should be addressed.

View File

@ -36,7 +36,7 @@
<context-param> <context-param>
<param-name>email</param-name> <param-name>email</param-name>
<param-value>WebGoat@g2-inc.com</param-value> <param-value>WebGoat@owasp.org</param-value>
<description> <description>
The EMAIL address of the administrator to whom questions The EMAIL address of the administrator to whom questions
and comments about this application should be addressed. and comments about this application should be addressed.

View File

@ -36,7 +36,7 @@
<context-param> <context-param>
<param-name>email</param-name> <param-name>email</param-name>
<param-value>WebGoat@g2-inc.com</param-value> <param-value>WebGoat@owasp.org</param-value>
<description> <description>
The EMAIL address of the administrator to whom questions The EMAIL address of the administrator to whom questions
and comments about this application should be addressed. and comments about this application should be addressed.