(reduces chances of session data growing too large)
- Fixed minor vulnerability in Mail Fetch plugin [CVE-2010-1637/TEHTRI-SA-2010-009]
- Now properly quote personal part of encoded addresses when replying.
- - Now fill in default subject when forwarding as attachment (#2936541)
+ - Now fill in default subject when forwarding as attachment (#2936541).
+ - Fix issues caused by use of PostgreSQL keyword "user" in SquirrelMail's
+ default preferences database schema (#2943483).
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
if (!empty($prefs_user_field)) {
$this->user_field = $prefs_user_field;
}
+
+ // the default user field is "user", which in PostgreSQL
+ // is an identifier and causes errors if not escaped
+ //
+ if ($this->db_type == SMDB_PGSQL) {
+ $this->user_field = '"' . $this->user_field . '"';
+ }
+
if (!empty($prefs_key_field)) {
$this->key_field = $prefs_key_field;
}