From: Meik S. <acy...@ph...> - 2009-10-30 17:00:40
|
Author: acydburn Date: Fri Oct 30 16:59:48 2009 New Revision: 10246 Log: saw this bug while debugging... we really really need another layer in 3.1.x (better sooner than later), but retaining backwards compatibility. Modified: branches/phpBB-3_0_0/phpBB/includes/db/oracle.php Modified: branches/phpBB-3_0_0/phpBB/includes/db/oracle.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/db/oracle.php (original) --- branches/phpBB-3_0_0/phpBB/includes/db/oracle.php Fri Oct 30 16:59:48 2009 *************** *** 136,142 **** */ function _rewrite_where($where_clause) { ! preg_match_all('/\s*(AND|OR)?\s*([\w_.]++)\s*(?:(=|<[=>]?|>=?)\s*((?>\'(?>[^\']++|\'\')*+\'|[\d-.]+))|((NOT )?IN\s*\((?>\'(?>[^\']++|\'\')*+\',? ?|[\d-.]+,? ?)*+\)))/', $where_clause, $result, PREG_SET_ORDER); $out = ''; foreach ($result as $val) { --- 136,142 ---- */ function _rewrite_where($where_clause) { ! preg_match_all('/\s*(AND|OR)?\s*([\w_.()]++)\s*(?:(=|<[=>]?|>=?)\s*((?>\'(?>[^\']++|\'\')*+\'|[\d-.()]+))|((NOT )?IN\s*\((?>\'(?>[^\']++|\'\')*+\',? ?|[\d-.]+,? ?)*+\)))/', $where_clause, $result, PREG_SET_ORDER); $out = ''; foreach ($result as $val) { |