Project

General

Profile

Bug #3052 » 3052.patch

krileon, 30 November 2011 20:35

View differences:

administrator/components/com_comprofiler/library/cb/cb.database.php
// single-quoted: \'(?:[^\\\']|\\.)*\'
// )
// possibly: ?
$pattern = '/(?<=[^"\'])(' . preg_quote( $prefix, '/' ) . ')("(?:[^\\\\"]|\.)*"|\'(?:[^\\\\\']|\.)*\')?/';
$pattern = '/(?:(?<=[^"\'])|^)(' . preg_quote( $prefix, '/' ) . ')("(?:[^\\\\"]|\.)*"|\'(?:[^\\\\\']|\.)*\')?/';
return preg_replace( $pattern, $this->getPrefix() . '\\2', $sql );
}
/**
(1-1/2)