RE: [PEAR-DEV] Auth, [set|get]AuthData(), suggestions and MDB container

From: Date: Wed, 05 Mar 2003 16:41:21 +0000
Subject: RE: [PEAR-DEV] Auth, [set|get]AuthData(), suggestions and MDB container
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14089@lists.php.net to get a copy of this message
> From: Martin Jansen [mailto:mj@php.net] > Sent: Wednesday, March 05, 2003 5:27 PM > I don't see what you mean, but it would be cool if you could provide a > patch for that. Here is a patch, which is totaly untested however. Hope you can use it in this format: RCS file: /repository/pear/Auth/Container/MDB.php,v retrieving revision 1.2 diff -r1.2 MDB.php 16c16 < // | Author: Lorenzo Alberton <l.alberton@quipo.it> | --- > // | Author: Lorenzo Alberton <l.alberton@quipo.it> | 170c170 < WHERE %s = '%s'", --- > WHERE %s = %s", 176c176 < $username --- > $this->db->getTextValue($username) 255c255 < $additional_value .= ", '" . $value . "'"; --- > $additional_value .= ", " . $this->db->getTextValue($value); 259c259 < $query = sprintf("INSERT INTO %s (%s, %s%s) VALUES ('%s', '%s'%s)", --- > $query = sprintf("INSERT INTO %s (%s, %s%s) VALUES (%s, %s%s)", 264,265c264,265 < $username, < $cryptFunction($password), --- > $this->db->getTextValue($username), > $this->db->getTextValue($cryptFunction($password)), 291c291 < $query = sprintf("DELETE FROM %s WHERE %s = '%s'", --- > $query = sprintf("DELETE FROM %s WHERE %s = %s", 294c294 < $username --- > $this->db->getTextValue($username) regards, Lukas

« previous php.pear.dev (#14089) next »