You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Christian Grobmeier (JIRA)" <ji...@apache.org> on 2009/05/25 17:54:46 UTC
[jira] Created: (LOG4PHP-47) Check if PDO Appender needs quote()
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.
[jira] Resolved: (LOG4PHP-47) Check if PDO Appender needs quote()
Posted by "Christian Hammers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4PHP-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Hammers resolved LOG4PHP-47.
--------------------------------------
Resolution: Fixed
Assignee: Christian Hammers
fixed in svn
> 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
> Assignee: Christian Hammers
> 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.