Added URL decoding (including decoding of '+' to ' ') to

`getSearchTerm()`.

Fixes #586.
This commit is contained in:
Sam Hatfield
2015-06-04 11:21:19 +01:00
parent 3e72675567
commit 8cf56b397b

View File

@@ -15,7 +15,7 @@ require([
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == 'q')
{
return sParameterName[1];
return decodeURIComponent(sParameterName[1].replace(/\+/g, '%20'));
}
}
}