Changeset 30814


Ignore:
Timestamp:
12/23/14 21:15:02 (5 years ago)
Author:
ddtddt
Message:

[extensions] - Add info - update export to manage_properties_photos error case with linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AddInfo/admin/admin.php

    r30813 r30814  
    6363        if (pwg_db_num_rows($result)) { 
    6464                while ($info = pwg_db_fetch_assoc($result)){ 
    65                         $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo1.',"'.$info['info1'].'");'; 
     65                        $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo1.',"'.htmlspecialchars($info['info1']).'");'; 
    6666                        pwg_query($q); 
    67                         $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo2.',"'.$info['info2'].'");'; 
     67                        $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo2.',"'.htmlspecialchars($info['info2']).'");'; 
    6868                        pwg_query($q); 
    69                         $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo3.',"'.$info['info3'].'");'; 
     69                        $q = 'INSERT INTO ' . $prefixeTable . 'add_properties_photos_data(id_img,id_prop_pho,data)VALUES ('.$info['id'].','.$idinfo3.',"'.htmlspecialchars($info['info3']).'");'; 
    7070                        pwg_query($q); 
    7171 
Note: See TracChangeset for help on using the changeset viewer.