summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-04-15 07:55:06 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-04-15 07:55:06 +0200
commita25838b267f76c027318df268797842b52d6ecea (patch)
treeefb597e717c5c58518c0bbb5347cf5353e66ef02 /www
parent5d22905ce7eb97d60c3dafddc3e96136a2b94436 (diff)
downloadsemanticscuttle-a25838b267f76c027318df268797842b52d6ecea.tar.gz
semanticscuttle-a25838b267f76c027318df268797842b52d6ecea.tar.bz2
Fix bug #3097187: Using opensearch with two tags does not work in Firefox
Diffstat (limited to 'www')
-rw-r--r--www/search.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/www/search.php b/www/search.php
index 3cff550..a5c13e3 100644
--- a/www/search.php
+++ b/www/search.php
@@ -40,8 +40,8 @@ if (POST_TERMS != '') {
}
/* Service creation: only useful services are created */
-$bookmarkservice =SemanticScuttle_Service_Factory::get('Bookmark');
-$searchhistoryservice =SemanticScuttle_Service_Factory::get('SearchHistory');
+$bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark');
+$searchhistoryservice = SemanticScuttle_Service_Factory::get('SearchHistory');
/* Managing current logged user */
$currentUserId = $userservice->getCurrentUserId();
@@ -53,11 +53,13 @@ if(count($exploded) == 4) {
list($url, $range, $terms, $page) = $exploded;
} else if (count($exploded) == 2) {
list($url, $range) = $exploded;
- $terms = $page= NULL;
+ $terms = $page = NULL;
} else {
list($url, $range, $terms) = $exploded;
- $page= NULL;
+ $page = NULL;
}
+//some OpenSearch clients need that
+$terms = urldecode($terms);
$tplVars['loadjs'] = true;