Jump to content

Erorr 403 Forbidden when updating email template.


qwerty513

Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated