From 8a0f5fc158bcd43251486dff98524753fc11f74b Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 1 Aug 2006 17:14:06 +0000 Subject: WP Merge Display newest updated blogs on home page Sidebar and footer: added links to signup and main blog git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@713 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wp-db.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'wp-includes/wp-db.php') diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 37f361a..03b3bc0 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -100,12 +100,14 @@ class wpdb { $EZSQL_ERROR[] = array ('query' => $this->last_query, 'error_str' => $str); + $str = htmlspecialchars($str, ENT_QUOTES); + $query = htmlspecialchars($this->last_query, ENT_QUOTES); // 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; -- cgit