forked from extern/egroupware
Make sure _with value is not null when trying to replace it into url, it causes broken url while using _replace argument from refresh_opener
This commit is contained in:
parent
9e749e516d
commit
056e5a1e96
@ -273,7 +273,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
|
||||
if (typeof _replace != 'undefined')
|
||||
{
|
||||
href = href.replace(typeof _replace == 'string' ? new RegExp(_replace) : _replace, typeof _with != 'undefined' ? _with : '');
|
||||
href = href.replace(typeof _replace == 'string' ? new RegExp(_replace) : _replace, (typeof _with != 'undefined' && _with != null) ? _with : '');
|
||||
}
|
||||
|
||||
if (href.indexOf('msg=') != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user