Commit 7d604df1 authored by Leigh B Stoller's avatar Leigh B Stoller

Send the query over to plone in the proper format.

parent 432d17cf
...@@ -32,6 +32,10 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING, ...@@ -32,6 +32,10 @@ $optargs = OptionalPageArguments("submit", PAGEARG_STRING,
if (!isset($query) || $query == "Search Documentation") { if (!isset($query) || $query == "Search Documentation") {
$query = ""; $query = "";
} }
else {
$query = urldecode($query);
$query = preg_replace("/[\ ]+/", "+", $query);
}
header("Location: http://wiki.emulab.net/@@search?SearchableText=$query"); header("Location: http://wiki.emulab.net/@@search?SearchableText=$query");
?> ?>
......
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