Spritetm / libesphttpd

NOTE: THIS CODE IS UNMAINTAINED. Please take a look at https://github.com/chmorgan/libesphttpd instead.
125 stars 109 forks source link

The percentage symbol (%) is not correctly interpreted in HTML documents #23

Closed mroavi closed 8 years ago

mroavi commented 8 years ago

Fragment of original HTML file: #center { padding: 10px 20px; width: 100%; }

Response from the server: #center { padding: 10px 20px; width: 100 '# ; }

The consequence is that the whole webpage is incorrectly displayed.

valkuc commented 8 years ago

You probably using template processing CGI routine (cgiEspFsTemplate). In this case you must "escape" percent symbol - write %%

mroavi commented 8 years ago

That worked. Thanks.