Changeset 18126


Ignore:
Timestamp:
09/21/12 20:34:47 (7 years ago)
Author:
mistic100
Message:

deal with quotes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Google2Piwigo/include/ws_functions.inc.php

    r17475 r18126  
    6262    'id' => $params['id'], 
    6363    'url' => $photoEntry->mediaGroup->content[0]->url, 
    64     'title' => $photoEntry->mediagroup->title->text, 
     64    'title' => get_filename_wo_extension($photoEntry->mediagroup->title->text), 
    6565    'author' => $photoEntry->mediaGroup->credit[0]->text, 
    6666    'description' => $photoEntry->mediagroup->description->text, 
     
    103103       
    104104      $category = array( 
    105         'name' => $albumEntry->mediaGroup->title->text.' <!-- picasa-'.$params['pwa_album'].' -->', 
    106         'comment' => $albumEntry->mediaGroup->description->text, 
     105        'name' => pwg_db_real_escape_string($albumEntry->mediaGroup->title->text).' <!-- picasa-'.$params['pwa_album'].' -->', 
     106        'comment' => pwg_db_real_escape_string($albumEntry->mediaGroup->description->text), 
    107107        'parent' => 0, 
    108108        ); 
     
    127127   
    128128    $updates = array(); 
    129     if (in_array('fill_name', $params['fills']))        $updates['name'] = $photo['title'];  
     129    if (in_array('fill_name', $params['fills']))        $updates['name'] = pwg_db_real_escape_string($photo['title']);  
    130130    if (in_array('fill_taken', $params['fills']))       $updates['date_creation'] = date('Y-d-m H:i:s', $photo['timestamp']); 
    131     if (in_array('fill_author', $params['fills']))      $updates['author'] = $photo['author']; 
    132     if (in_array('fill_description', $params['fills'])) $updates['comment'] = $photo['description']; 
     131    if (in_array('fill_author', $params['fills']))      $updates['author'] = pwg_db_real_escape_string($photo['author']); 
     132    if (in_array('fill_description', $params['fills'])) $updates['comment'] = pwg_db_real_escape_string($photo['description']); 
    133133     
    134134    if (count($updates)) 
Note: See TracChangeset for help on using the changeset viewer.