diff -r 4cc27e7abd60 -r 424ea7aac0ca includes/dbal.php --- a/includes/dbal.php Mon Aug 11 21:32:52 2008 -0400 +++ b/includes/dbal.php Mon Aug 11 21:33:46 2008 -0400 @@ -267,7 +267,8 @@ if ( !$this->check_query($q) ) { $this->report_query($q); - grinding_halt('SQL Injection attempt', '
Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.
Query was:
'.htmlspecialchars($q).''); + $debug = ( defined('ENANO_DEBUG') ) ? '
Query was:
'.htmlspecialchars($q).'' : ''; + grinding_halt('SQL Injection attempt', '
Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.
' . $debug); } } @@ -300,11 +301,12 @@ if ( !$this->check_query($q) ) { $this->report_query($q); - grinding_halt('SQL Injection attempt', 'Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.
Query was:
'.htmlspecialchars($q).''); + $debug = ( defined('ENANO_DEBUG') ) ? '
Query was:
'.htmlspecialchars($q).'' : ''; + grinding_halt('SQL Injection attempt', '
Enano has caught and prevented an SQL injection attempt. Your IP address has been recorded and the administrator has been notified.
' . $debug); } $time_start = microtime_float(); - $r = mysql_unbuffered_query($q, $this->_conn); + $r = @mysql_unbuffered_query($q, $this->_conn); $this->query_times[$q] = microtime_float() - $time_start; $this->latest_result = $r; $this->disable_errorhandler();