Changeset 8117 for trunk/gsdl


Ignore:
Timestamp:
2004-09-10T16:46:27+12:00 (20 years ago)
Author:
mdewsnip
Message:

Fixed a bug where extra dots in filenames would cause the file extensions to be removed badly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/PagedImgPlug.pm

    r7506 r8117  
    293293    # Add the image metadata
    294294    my $file; # the new file name
    295     my ($id) = $srcfile =~ /^([^\.]*)/; #the new file name without an extension
     295    my $id = $srcfile;
     296    $id =~ s/\.([^\.]*)$//;  # the new file name without an extension
    296297    if ($converted) {
    297298    # we have converted the image
Note: See TracChangeset for help on using the changeset viewer.