mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
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
4fc6102162
commit
a2bac6e07a
@ -273,7 +273,7 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
|
|
||||||
if (typeof _replace != 'undefined')
|
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)
|
if (href.indexOf('msg=') != -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user