Improve message "Malformed UTF-8 detected"

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Improve message "Malformed UTF-8 detected"

Post by cmb » Fri Sep 05, 2014 5:56 pm

Hello Community,

since CMSimple_XH 1.5.4 there is a check to prevent attacks through unexpected character encodings. If the test is positive, XH responds with 400 Bad request and the message "Malformed UTF-8 detected" is shown.

Obviously, in rare cases this 400 response happens to innocent users, so I suggest that we improve the message, for instance:
Bad request. Please <a href=".">try again</a>.
We could easily add internationalization as the language file is already read before the check. I suggest to do so.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Improve message "Malformed UTF-8 detected"

Post by cmb » Fri Jan 09, 2015 4:59 pm

Done (r1445).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply