summaryrefslogtreecommitdiffstats
path: root/wp-includes/wp-db.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-01 17:14:06 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-01 17:14:06 +0000
commit8a0f5fc158bcd43251486dff98524753fc11f74b (patch)
treef2be926c859d61f7f946bd8e7bc6ab13b5eae87b /wp-includes/wp-db.php
parent503214a304ab0ce46df6feae4c052abcd941af98 (diff)
downloadwordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.tar.gz
wordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.tar.xz
wordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.zip
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
Diffstat (limited to 'wp-includes/wp-db.php')
-rw-r--r--wp-includes/wp-db.php4
1 files changed, 3 insertions, 1 deletions
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 "<div id='error'>
<p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
- <code>$this->last_query</code></p>
+ <code>$query</code></p>
</div>";
} else {
return false;