Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-47

Check if PDO Appender needs quote()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Code
    • None

    Description

      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)";

      Attachments

        Activity

          People

            lathspell Christian Brunotte
            grobmeier Christian Grobmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: