Renamed XMLInjection to XPATHInjection

Made some changes to the lesson according to Jeff's comments

git-svn-id: http://webgoat.googlecode.com/svn/trunk@36 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
sherif.fathy
2006-12-16 23:38:02 +00:00
parent 296254e279
commit 60d65681ff
3 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ import org.owasp.webgoat.session.ECSFactory;
* @author sherif
*
*/
public class XMLInjection extends LessonAdapter {
public class XPATHInjection extends LessonAdapter {
private final static Integer DEFAULT_RANKING = new Integer(74);
private final static String USERNAME = "Username";
@ -99,7 +99,7 @@ public class XMLInjection extends LessonAdapter {
return ec;
}
String dir = s.getContext().getRealPath( "/lessons/XMLInjection/EmployeesData.xml" );
String dir = s.getContext().getRealPath( "/lessons/XPATHInjection/EmployeesData.xml" );
File d = new File( dir );
XPathFactory factory = XPathFactory.newInstance();
XPath xPath = factory.newXPath();
@ -195,7 +195,7 @@ public class XMLInjection extends LessonAdapter {
public String getTitle() {
return "How to Perform XML Injection";
return "How to Perform XPATH Injection";
}
}