Ignore:
Timestamp:
Oct 29, 2013, 11:38:54 PM (10 years ago)
Author:
plg
Message:

merge r25223 from branch 2.5 to trunk

bug 2992 fixed: escape all file names before searching them as duplicates in batch manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r25018 r25224  
    278278SELECT id
    279279  FROM '.IMAGES_TABLE.'
    280   WHERE file IN (\''.implode("','", $duplicate_files).'\')
     280  WHERE file IN (\''.implode("','", array_map('pwg_db_real_escape_string', $duplicate_files)).'\')
    281281;';
    282282    $filter_sets[] = array_from_query($query, 'id');
Note: See TracChangeset for help on using the changeset viewer.