Sql error onsave
-
Hi,
There is a strange behavior, it happens when I configure contact form 7 with a textarea or text field containing a placeholder. When the form is submitted, simple quotes are not escaped on the database, so when I go to the details of the submitted form from the backend side, the plugin tries to pass form to “read” but the sql query failed:
Extract from the PHP error_log:
The generate query looks like:UPDATE wp_db7_forms SET form_value ='a:3:{s:12:"cfdb7_status";s:4:"read";s:3:"nom";s:11:"test ' test";s:12:"your-message";s:4:"test";}'You can see that the data “test ‘ test” is not escape.
If there is no placeholder on my textarea field, all works fine.
Do you plan to fix it ?
Thank you !Test Environment:
PHP: 7.2.12
Wordpress: 4.9.8
Contact form 7: 5.0.5
Contact Form CFDB7: 1.2.4.3
No other plugin.
The topic ‘Sql error onsave’ is closed to new replies.