Index: audit_config_add_ajax.php
===================================================================
--- audit_config_add_ajax.php (revision 1251)
+++ audit_config_add_ajax.php (working copy)
@@ -30,6 +30,13 @@
$ws_cfg = GetAuditSettingsFromDb();
$configs = GetAuditConfigurationsFromDb();
+#
+# The following turns off strict checking so incorrect
+# datatypes can be inserted into fields!
+$sql = "SET @@session.sql_mode=''";
+$result = mysql_query($sql,$db);
+#
+
/* If they havent set the default base URL, do it now */
if ( empty($ws_cfg['base_url']) ){
$sql = "UPDATE `audit_settings` SET audit_settings_base_url='" . GetUrlPath() . "';";
Index: audit_configuration.php
===================================================================
--- audit_configuration.php (revision 1251)
+++ audit_configuration.php (working copy)
@@ -26,6 +26,7 @@
$id = ( isset($_GET['config_id']) ) ? $_GET['config_id'] : '0';
$ip = explode(".", $cfg[$id]['ip_start'] );
+ $ip_end = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ip_end'] : '0';
$opt_logging = ( !is_null($cfg[$id]) ) ? $cfg[$id]['enable_logging'] : '1';
$opt_tcpsyn = ( !is_null($cfg[$id]) ) ? $cfg[$id]['nmap_tcp_scan'] : '1';
@@ -73,7 +74,7 @@
-