Ignore:
Timestamp:
Oct 9, 2013, 3:18:02 PM (10 years ago)
Author:
mistic100
Message:

fix bug with quotes, add batch manager prefilter

File:
1 edited

Legend:

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

    r24660 r24815  
    108108 
    109109    $updates = array();
    110     if (in_array('fill_name', $photo['fills']))   $updates['name'] = $photo['title'];
     110    if (in_array('fill_name', $photo['fills']))   $updates['name'] = pwg_db_real_escape_string($photo['title']);
    111111    if (in_array('fill_posted', $photo['fills'])) $updates['date_available'] = date('Y-m-d H:i:s', $photo['dates']['posted']);
    112112    if (in_array('fill_taken', $photo['fills']))  $updates['date_creation'] = $photo['dates']['taken'];
    113     if (in_array('fill_author', $photo['fills'])) $updates['author'] = $photo['owner']['username'];
     113    if (in_array('fill_author', $photo['fills'])) $updates['author'] = pwg_db_real_escape_string($photo['owner']['username']);
    114114   
    115115    if (count($updates))
Note: See TracChangeset for help on using the changeset viewer.