qwerty513 Posted February 6, 2016 Share Posted February 6, 2016 Hi there, I am experiencing quite a strange issue when updating email templates, (configemailtemplates.php). Whenever I paste in my HTML email template in to the HTML editor and press save I get a standard "Forbidden" error page. I cannot see anything in my logs. The strange thing about it is that if I make a minor change to the email and press save then it will save it correctly. The template is roughly about 32k characters long, maybe that is the problem? This is what gets logged when I try saving my new email template: x.x.x.x- access [06/Feb/2016:18:41:25 +0000] "POST /clientarea/whmcsadmin/configemailtemplates.php?savemessage=true&id=37 HTTP/1.1" 404 - "http://example.com/clientarea/whmcsadmin/configemailtemplates.php?action=edit&id=37" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0" I am really confused as to why this issue is occurring and would appreciate any feedback. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 10, 2016 WHMCS Support Manager Share Posted February 10, 2016 Hi, The tblemailtemplates.message field is a 'text' type, that means it can store 65K of data, so your email template sounds well within that. The behaviour you're describing here is that the actual content of the message is causing the problem; by triggering some kind of server-side security measure (such as mod_security) which is blocking the submitted data. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.