From b15ddd4e0d2f526ad9e2ad97ff05e7ed8679d06c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 28 Jul 2006 22:58:38 +0000 Subject: [PATCH] specialchars DB error. git-svn-id: https://develop.svn.wordpress.org/trunk@4061 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index a9de7354de..23deef8043 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -93,12 +93,14 @@ class wpdb { $EZSQL_ERROR[] = array ('query' => $this->last_query, 'error_str' => $str); + $str = wp_specialchars($str, 1); + $query = wp_specialchars($this->last_query, 1); // Is error output turned on or not.. if ( $this->show_errors ) { // If there is an error then take note of it print "

WordPress database error: [$str]
- $this->last_query

+ $query

"; } else { return false;