summaryrefslogtreecommitdiff
path: root/modules/search/search.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search/search.module')
-rw-r--r--modules/search/search.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index beb30565e..559c4bf51 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -22,7 +22,7 @@ function search_item($item, $type) {
}
function search_page() {
- global $theme, $edit, $type, $keys, $REQUEST_URI;
+ global $theme, $edit, $type, $keys;
if (user_access("search content")) {
@@ -37,7 +37,6 @@ function search_page() {
** Construct the search form:
*/
- $form .= "<form action=\"$REQUEST_URI\" method=\"POST\">";
$form .= " <input size=\"50\" value=\"". check_form($keys) ."\" name=\"keys\" type=\"text\">";
$form .= " <input type=\"submit\" value=\"". t("Search") ."\"><br />";
$form .= t("Restrict search to") .": ";
@@ -48,7 +47,7 @@ function search_page() {
}
}
- $form .= "</form>\n";
+ $form = form($form);
/*
** Collect the search results: