Avoid errors with non-string objects

pull/45/merge
Thomas Bruederli 12 years ago
parent 52d0d94910
commit 0f6e9f0bf6

@ -508,7 +508,7 @@ function rcube_webmail()
return false; return false;
// let the browser handle this click (shift/ctrl usually opens the link in a new window/tab) // let the browser handle this click (shift/ctrl usually opens the link in a new window/tab)
if ((obj && obj.href && obj.href.indexOf(location.href) < 0) && rcube_event.get_modifier(event)) { if ((obj && obj.href && String(obj.href).indexOf(location.href) < 0) && rcube_event.get_modifier(event)) {
return true; return true;
} }

Loading…
Cancel
Save