Commit ee4b8bc2 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix the fix for empty queries.

parent 1a60c844
......@@ -133,6 +133,8 @@ if (! ($query_which == "title" ||
$query_which == "body" || $query_which == "both")) {
PAGEARGERROR("Improper query which $query_which");
}
# Strip leading and trailing whitespace to avoid confusion below.
$query = trim($query);
#
# Must supply a query!
......@@ -151,8 +153,6 @@ if (! TBvalid_userdata($query)) {
PAGEFOOTER();
return;
}
# Strip leading and trailing whitespace to avoid confusion below.
$query = trim($query);
#
# Look for special "*" query; just get everything and list it.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment