[sork] patch for sql.php @ vacation

Martin Luethi horde at humbapa.ch
Fri Jan 23 04:56:01 PST 2004


hi list,

attached is a small-patch for vacation
it fixes a typo in the sql-driver (function _getUserDetails):
line
$query .= ' AND password = ' . $this->_db->quote(md5($password));
changed to
$query .= ' AND ' . $this->params['pass_col']  . ' = ' . $this->_db->quote(md5
($password));

g. martin luethi
-------------- next part --------------
Index: sql.php
===================================================================
RCS file: /repository/vacation/lib/Driver/sql.php,v
retrieving revision 1.16
diff -u -r1.16 sql.php
--- sql.php	3 Jan 2004 14:38:35 -0000	1.16
+++ sql.php	23 Jan 2004 12:48:59 -0000
@@ -153,7 +153,7 @@
         $query = 'SELECT ' . $this->params['vacation'] . ' AS vacation, ' . $this->params['message'] . ' AS message';
         $query .= ' FROM ' . $this->params['table'];
         $query .= ' WHERE ' . $this->params['user_col'] . ' = ' . $this->_db->quote($myuser);
-        $query .= ' AND password = ' . $this->_db->quote(md5($password));
+        $query .= ' AND ' . $this->params['pass_col']  . ' = ' . $this->_db->quote(md5($password));
 
         /* Execute the query. */
         $result = $this->_db->query($query);


More information about the sork mailing list