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

Issues related to previewing and publishing your web site.
Post Reply
code2
 
 
Posts: 85
Joined: Thu Mar 30, 2017 5:19 am

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

Post 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.
User avatar
Pablo
 
Posts: 23226
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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.
code2
 
 
Posts: 85
Joined: Thu Mar 30, 2017 5:19 am

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

Post by code2 »

All good thanks. I’ll just need to remember not to use them.
Post Reply