Various fixes and cleanups, inspired and pointed out by Joseph Scott.

git-svn-id: https://develop.svn.wordpress.org/trunk@1245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-05-09 05:47:02 +00:00
parent 4a58f4f523
commit 7f1cdc843e
11 changed files with 33 additions and 53 deletions

View File

@@ -55,8 +55,8 @@ if (!empty($delete_comments)) {
echo "<div class='wrap'><p>" . sprintf(__('%s comments deleted.'), $i) . "</p></div>";
}
if ($s) {
$s = $wpdb->escape($s);
if (isset($_GET['s'])) {
$s = $wpdb->escape($_GET['s']);
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE
comment_author LIKE '%$s%' OR
comment_author_email LIKE '%$s%' OR