fixed error if get parameter has no equal sign, eg. /some/url?download

This commit is contained in:
Ralf Becker 2013-04-09 16:17:43 +00:00
parent 344bd88e4a
commit 26f54eb8ce

View File

@ -285,7 +285,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function() {
{ {
var name_val = _extravars[i].split('=',2); var name_val = _extravars[i].split('=',2);
var name = name_val[0]; var name = name_val[0];
var val = name_val[1]; var val = name_val[1] || '';
if (val.indexOf('%26') != -1) val = val.replace(/%26/g,'&'); // make sure to not double encode & if (val.indexOf('%26') != -1) val = val.replace(/%26/g,'&'); // make sure to not double encode &
if (name.lastIndexOf('[]') == name.length-2) if (name.lastIndexOf('[]') == name.length-2)
{ {