Check if PDO Appender needs quote()
-----------------------------------
Key: LOG4PHP-47
URL: https://issues.apache.org/jira/browse/LOG4PHP-47
Project: Log4php
Issue Type: Improvement
Components: Code
Affects Versions: 2.0
Reporter: Christian Grobmeier
Fix For: 2.0
The PDO Appender may fail if the log message contains a quote (").
The quote() function (http://de2.php.net/manual/en/pdo.quote.php)
puts backslashes before every quote and then a pair of single quotes
around the result so you would have the diff:
- VALUES ('%d','%c','%p','%m','%t','%F','%L')";
+ VALUES (%d,%c,%p,%m,%t,%F,%L)";
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.