diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index 62245ee27..64b970e37 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -405,8 +405,8 @@ function performSearch() { document.contactLookupAjaxRequest.abort(); } if (MailEditor.currentField.value.trim().length > 1) { - var urlstr = ( UserFolderURL + "Contacts/allContactSearch?search=" - + MailEditor.currentField.value ); + var urlstr = (UserFolderURL + "Contacts/allContactSearch?search=" + + encodeURIComponent(MailEditor.currentField.value)); document.contactLookupAjaxRequest = triggerAjaxRequest(urlstr, performSearchCallback, MailEditor.currentField); }