summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 8add04363..b45e310ca 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -517,8 +517,13 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$link['title'] = $id;
//add search string
if($search){
- ($conf['userewrite']) ? $link['url'].='?s=' : $link['url'].='&s=';
- $link['url'] .= rawurlencode($search);
+ ($conf['userewrite']) ? $link['url'].='?' : $link['url'].='&';
+ if(is_array($search)){
+ $search = array_map('rawurlencode',$search);
+ $link['url'] .= 's[]='.join('&s[]=',$search);
+ }else{
+ $link['url'] .= 's='.rawurlencode($search);
+ }
}
//keep hash