Hi,

I have URL's with the plus sign (+) in which are not being matched.

I've got round the problem by adding in:

$queries = str_replace('+', ' ', $queries);

after

if ($getkeylower != 'q' && !$page_match) {

I'm sure there is a better way around this, is it something that could be built into the module?

thanks

Comments

lsolesen’s picture

Could you create a patch for easier testing?

SolomonGifford’s picture

Status: Active » Closed (works as designed)

Drupal (via php) interprets a + in the url as a space because it is passed through urldecode. To match a +, simply add a space to your url argument.

//Don't use:
a=b+c

//Correct:
a=b c

A url of example.com?a=b+c will match the space, not the +.