From bc77bc1ec3c34976337a5188f5b4a24feb7fc88c Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 15 May 2008 16:36:52 +0000 Subject: No need to encode strings sent to log file git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1290 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wp-db.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'wp-includes') diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index dec8bc4..bbef0cf 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -233,15 +233,10 @@ class wpdb { if ( !$this->show_errors ) return false; - $str = htmlspecialchars($str, ENT_QUOTES); - $query = htmlspecialchars($this->last_query, ENT_QUOTES); - // If there is an error then take note of it - $msg = "WordPress database error: [$str]\n$query\n"; + $msg = "WordPress database error: [$str]\n{$this->query}\n"; if( defined( 'ERRORLOGFILE' ) ) error_log( $msg, 3, CONSTANT( 'ERRORLOGFILE' ) ); - else - error_log( $msg, 0 ); if( defined( 'DIEONDBERROR' ) ) die( $msg ); } -- cgit