# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.database.php +++ administrator/components/com_comprofiler/library/cb/cb.database.php @@ -673,7 +673,7 @@ // single-quoted: \'(?:[^\\\']|\\.)*\' // ) // possibly: ? - $pattern = '/(?<=[^"\'])(' . preg_quote( $prefix, '/' ) . ')("(?:[^\\\\"]|\.)*"|\'(?:[^\\\\\']|\.)*\')?/'; + $pattern = '/(?:(?<=[^"\'])|^)(' . preg_quote( $prefix, '/' ) . ')("(?:[^\\\\"]|\.)*"|\'(?:[^\\\\\']|\.)*\')?/'; return preg_replace( $pattern, $this->getPrefix() . '\\2', $sql ); } /**