Minahito
minah****@users*****
2005年 7月 18日 (月) 15:31:21 JST
Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2.6.1.2.6 xoops2jp/html/class/criteria.php:1.2.6.1.2.7 --- xoops2jp/html/class/criteria.php:1.2.6.1.2.6 Fri Jul 8 18:53:31 2005 +++ xoops2jp/html/class/criteria.php Mon Jul 18 15:31:21 2005 @@ -1,5 +1,5 @@ <?php -// $Id: criteria.php,v 1.2.6.1.2.6 2005/07/08 09:53:31 nobunobu Exp $ +// $Id: criteria.php,v 1.2.6.1.2.7 2005/07/18 06:31:21 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -342,8 +342,7 @@ $value = $this->value; if (!in_array(strtoupper($this->operator), array('IN', 'NOT IN'))) { if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) { - $db =& XoopsDatabaseFactory::getDatabaseConnection(); - $value = $db->quoteString($value); + $value = "'".$value."'"; } } $clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column;