Browse Source

SQL injection fix. This is serious I think.

stekkel 21 years ago
parent
commit
70d069a922
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/abook_database.php

+ 1 - 1
functions/abook_database.php

@@ -174,7 +174,7 @@ class abook_database extends addressbook_backend {
         }
          
         $query = sprintf("SELECT * FROM %s WHERE owner='%s' AND nickname='%s'",
-                         $this->table, $this->owner, $alias);
+                         $this->table, $this->owner, $this->dbh->quoteString($alias));
 
         $res = $this->dbh->query($query);