mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
specialchars DB error.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3c3ab6eea7
commit
d6c6f2b985
@ -93,12 +93,14 @@ class wpdb {
|
|||||||
$EZSQL_ERROR[] =
|
$EZSQL_ERROR[] =
|
||||||
array ('query' => $this->last_query, 'error_str' => $str);
|
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..
|
// Is error output turned on or not..
|
||||||
if ( $this->show_errors ) {
|
if ( $this->show_errors ) {
|
||||||
// If there is an error then take note of it
|
// If there is an error then take note of it
|
||||||
print "<div id='error'>
|
print "<div id='error'>
|
||||||
<p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
|
<p class='wpdberror'><strong>WordPress database error:</strong> [$str]<br />
|
||||||
<code>$this->last_query</code></p>
|
<code>$query</code></p>
|
||||||
</div>";
|
</div>";
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user