Unify DatabaseUtilities.makeConnection()
Remove the hack to support Web services lessons that do not have a WebSession Now that they have their own reference to WebgoatContext, they do not need one git-svn-id: http://webgoat.googlecode.com/svn/trunk@140 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
@ -409,7 +409,7 @@ public class SoapRequest extends LessonAdapter
|
||||
{
|
||||
try
|
||||
{
|
||||
Connection connection = DatabaseUtilities.makeConnection();
|
||||
Connection connection = DatabaseUtilities.makeConnection(getWebgoatContext());
|
||||
if (connection == null)
|
||||
{
|
||||
return null;
|
||||
|
@ -271,7 +271,7 @@ public class WSDLScanning extends LessonAdapter
|
||||
{
|
||||
try
|
||||
{
|
||||
Connection connection = DatabaseUtilities.makeConnection();
|
||||
Connection connection = DatabaseUtilities.makeConnection(getWebgoatContext());
|
||||
if (connection == null)
|
||||
{
|
||||
return null;
|
||||
|
@ -226,7 +226,7 @@ public class WsSqlInjection extends LessonAdapter
|
||||
{
|
||||
try
|
||||
{
|
||||
Connection connection = DatabaseUtilities.makeConnection();
|
||||
Connection connection = DatabaseUtilities.makeConnection(getWebgoatContext());
|
||||
if (connection == null)
|
||||
{
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user