From a0a0dd1aa0557b3321d2dee55e2e5cd5eea8ae6e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 23 Jan 2019 12:18:40 +0100 Subject: [PATCH] Try to send the request as POST if the url is exceeding certain number of characters. --- .../et2_extension_nextmatch_actions.js | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_nextmatch_actions.js b/api/js/etemplate/et2_extension_nextmatch_actions.js index b6432f2d3e..b603a592c1 100644 --- a/api/js/etemplate/et2_extension_nextmatch_actions.js +++ b/api/js/etemplate/et2_extension_nextmatch_actions.js @@ -120,7 +120,47 @@ function nm_action(_action, _senders, _target, _ids) break; case 'popup': - egw.open_link(url,target,_action.data.width+'x'+_action.data.height); + + // Accoring to microsoft, IE 10/11 can only accept a url with 2083 caharacters + // therefore we need to send request to compose window with POST method + // instead of GET. We create a temporary
and will post emails. + // ** WebServers and other browsers also have url length limit: + // Firefox:~ 65k, Safari:80k, Chrome: 2MB, Apache: 4k, Nginx: 4k + if (url.length > 2083) + { + var $tmpForm = jQuery(document.createElement('form')); + var $tmpSubmitInput = jQuery(document.createElement('input')).attr({type:"submit"}); + var params = url.split('&'); + url = params[0]; + for (var i=1;i