Changeset 703


Ignore:
Timestamp:
Jan 17, 2005, 8:11:50 PM (20 years ago)
Author:
plg
Message:
  • bug fixed : in thumbnail creation process, only files with filename authorized by PhpWebGallery are listed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r695 r703  
    214214    $dirname = dirname($path);
    215215    $filename = basename($path);
     216
     217    // only files matching the authorized filename pattern can be considered
     218    // as "without thumbnail"
     219    if (!preg_match('/^[a-zA-Z0-9-_.]+$/', $filename))
     220    {
     221      continue;
     222    }
     223   
    216224    // searching the element
    217225    $filename_wo_ext = get_filename_wo_extension($filename);
Note: See TracChangeset for help on using the changeset viewer.