Page 1 of 1

Using Double Quotation Mark (") in Form/Text Area/Validate/Text Form/Other seems to cause a 500 Error on loading

Posted: Fri Dec 20, 2024 3:51 am
by code2
Not sure if this is a bug or just the way things work.

Experimenting the other day with my website contact form by entering various Text Form validation options for characters entered in a Text Area in the Form on a live website. Because it is a PHP page, I could not test it locally.

As it turns out, when using the Double Quotation (") character in the Text Format / Other and then publishing the page, Firefox showed nothing (blank page) after loading and Google Chrome displayed a 500 Error (Internal Server Error).

I tried it on another website I manage and the same thing happened.

Took the " out and published and all functioned as it should.

Re-inserted the " in the Other field and same thing happens.

Take it out and all works fine.
-------------------------------------------------------------

Not sure if it is just that character or perhaps there could be others, which I did not test.

As a background, I am trying to do is prevent someone from entering a website address (preventing the / as in https://) in the Text Area.

Re: Using Double Quotation Mark (") in Form/Text Area/Validate/Text Form/Other seems to cause a 500 Error on loading

Posted: Fri Dec 20, 2024 7:21 am
by Pablo
In some cases, you will need to escape quotes otherwise the browser will think it's a closing quote of an HTML attribute.
This is not a bug in the software, but how HTML works.

If you need further assistance then please provide a DEMO project.

Re: Using Double Quotation Mark (") in Form/Text Area/Validate/Text Form/Other seems to cause a 500 Error on loading

Posted: Fri Dec 20, 2024 11:06 am
by code2
All good thanks. I’ll just need to remember not to use them.