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

Roberto Gerola’s picture

Status: Active » Fixed

Fixed.

Many thanks

mfb’s picture

Status: Fixed » Active

Thanks. you forgot a semi-colon though ;)

Roberto Gerola’s picture

Status: Active » Fixed

Seen. Refixed, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.