Permalink
Browse files

Use Constants for DbTypes in Providers. Amend TODO. Don't add DB config

files. Each to his own.
  • Loading branch information...
1 parent 32f51e1 commit c1b19faf0eeada5f3c719be616c88ab5f69eff33 @hpapaxen hpapaxen committed Aug 6, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 WebGoat/App_Code/DB/MySqlDbProvider.cs
  3. +1 −1 WebGoat/App_Code/DB/SqliteDbProvider.cs
  4. +1 −1 WebGoat/TODO.txt
View
@@ -5,6 +5,7 @@ WebGoat/WebGoat.NET.pidb
WebGoat/bin
WebGoat/obj
WebGoat/App_Data/*
+WebGoat/Configuration/*.config
# Trash Files #
###############
@@ -11,7 +11,7 @@ public class MySqlDbProvider : IDbProvider
private string _connectionString;
ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- public string Name { get { return "MySql"; } }
+ public string Name { get { return DbConstants.DB_TYPE_MYSQL; } }
private static string ConfigConnection(ConfigFile configFile)
{
@@ -5,7 +5,7 @@ namespace OWASP.WebGoat.NET.App_Code.DB
{
public class SqliteDbProvider : IDbProvider
{
- public string Name { get { return "Sqlite"; } }
+ public string Name { get { return DbConstants.DB_TYPE_SQLITE; } }
public bool TestConnection()
{
View
@@ -47,7 +47,7 @@ Harry:
+ Command Injection
* Also part of automatic DB setup
-+ Create adaptor for switching out DBs
++ Create adaptor for switching out DBs (DONE)
Ray:

0 comments on commit c1b19fa

Please sign in to comment.