cvs: pear /LiveUser_Admin/Storage MDB2.php

From: Date: Wed, 15 Dec 2004 13:09:52 +0000
Subject: cvs: pear /LiveUser_Admin/Storage MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27432@lists.php.net to get a copy of this message
lsmith Wed Dec 15 08:09:52 2004 EDT Modified files: /pear/LiveUser_Admin/Storage MDB2.php Log: - quote expects numeric values for type 'integer' http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/MDB2.php?r1=1.2&r2=1.3&ty=u Index: pear/LiveUser_Admin/Storage/MDB2.php diff -u pear/LiveUser_Admin/Storage/MDB2.php:1.2 pear/LiveUser_Admin/Storage/MDB2.php:1.3 --- pear/LiveUser_Admin/Storage/MDB2.php:1.2 Wed Dec 15 01:19:47 2004 +++ pear/LiveUser_Admin/Storage/MDB2.php Wed Dec 15 08:09:52 2004 @@ -44,7 +44,7 @@ * * @author Lukas Smith <smith@backendmedia.com> * @author Bjoern Kraus <krausbn@php.net> - * @version $Id: MDB2.php,v 1.2 2004/12/15 06:19:47 dufuz Exp $ + * @version $Id: MDB2.php,v 1.3 2004/12/15 13:09:52 lsmith Exp $ * @package LiveUser * @category authentication */ @@ -92,6 +92,13 @@ function quote($value, $type) { + if ($type == 'integer' && !is_numeric($value)) { + $this->_stack->push( + LIVEUSER_ADMIN_ERROR_QUERY_BUILDER, 'exception', + array('reason' => 'expected integer value is not numeric: '.$value) + ); + return false; + } return $this->dbc->quote($value, $type); }

« previous php.pear.cvs (#27432) next »