Changeset 7979 for trunk


Ignore:
Timestamp:
03/07/13 11:03:34 (11 years ago)
Author:
angelo
Message:

Ticket #3367 - Problema ao gravar assinatura com formatacao no banco

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.preferences.inc.php

    r7655 r7979  
    567567                                        $value = $this->db->db_addslashes(serialize($value));   // this addslashes is for the database 
    568568                                        $app = $this->db->db_addslashes($app); 
    569  
     569                                        if ($this->db->Type == "pgsql" && isset($value['signature'])){ 
     570                                                $value['signature'] = pg_escape_string($value['signature']);                                                     
     571                                        } 
    570572                                        $this->db->query($sql = "INSERT INTO phpgw_preferences" 
    571573                                                . " (preference_owner,preference_app,preference_value)" 
Note: See TracChangeset for help on using the changeset viewer.