foreach ($_GET as $key=>$value) {
if ($key == 'q') continue;
if($query) $query .= '&';
$query .= $key .'='. $value;
}You cannot just concat $_GET variables into a query string, they need to be url encoded. This should be something like drupal_query_string_encode($_GET, array('q'))
Comments
Comment #1
Roberto Gerola commentedFixed.
Many thanks
Comment #2
mfbThanks. you forgot a semi-colon though ;)
Comment #3
Roberto Gerola commentedSeen. Refixed, thanks.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.