diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-15 16:36:52 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-05-15 16:36:52 +0000 |
commit | bc77bc1ec3c34976337a5188f5b4a24feb7fc88c (patch) | |
tree | 8339fa06208154c3ac9bcaaa363ae86dfcc70f52 /wp-includes/wp-db.php | |
parent | cb6323b69dbd6e62362f12fb7f474f1707bf3f09 (diff) | |
download | wordpress-mu-bc77bc1ec3c34976337a5188f5b4a24feb7fc88c.tar.gz wordpress-mu-bc77bc1ec3c34976337a5188f5b4a24feb7fc88c.tar.xz wordpress-mu-bc77bc1ec3c34976337a5188f5b4a24feb7fc88c.zip |
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
Diffstat (limited to 'wp-includes/wp-db.php')
-rw-r--r-- | wp-includes/wp-db.php | 7 |
1 files changed, 1 insertions, 6 deletions
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 ); } |