diff options
-rw-r--r-- | inc/auth/pgsql.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth/pgsql.class.php b/inc/auth/pgsql.class.php index 010b0f6d5..a6da56af5 100644 --- a/inc/auth/pgsql.class.php +++ b/inc/auth/pgsql.class.php @@ -196,7 +196,7 @@ class auth_pgsql extends auth_mysql { $sql = $this->cnf['addUserGroup']; if(strpos($sql,'%{uid}') !== false){ $uid = $this->_getUserID($user); - $sql = str_replace('%{uid}', $uid, $sql); + $sql = str_replace('%{uid}', addslashes($uid), $sql); } $sql = str_replace('%{user}', addslashes($user),$sql); $sql = str_replace('%{gid}', addslashes($gid),$sql); |