Escape the callstack function args in ProfilingPDO::ConstructHTMLDebugBlock().
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 4 Jun 2013 05:19:52 +0000 (01:19 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 4 Jun 2013 05:19:52 +0000 (01:19 -0400)
data/profiling_pdo.php

index f4150206ff15cb3516972f887702f82cda90f640..4b1a9d2968916e186e2325167bce7f00e60b35ca 100644 (file)
@@ -18,6 +18,7 @@ namespace hoplite\data;
 
 use \hoplite\base\Profiling;
 
+require_once HOPLITE_ROOT . '/base/filter.php';
 require_once HOPLITE_ROOT . '/base/profiling.php';
 
 /*!
@@ -117,7 +118,7 @@ class ProfilingPDO extends \PDO
       $debug .= "\n\t\t\t$query[query]\n\n";
       if (isset($query['params'])) {
         $debug .= "\t\t\t<ol>\n\t\t\t\t<li>";
-        $debug .= implode("</li>\n\t\t\t\t<li>", $query['params']);
+        $debug .= implode("</li>\n\t\t\t\t<li>", \hoplite\base\filter\String($query['params']));
         $debug .= "</li>\n\t\t\t</ol>\n";
       }
       $debug .= "\n\t\t\t<div style=\"font-size: 9px;\">(" .