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
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.
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.