Changeset 5765


Ignore:
Timestamp:
2003-10-29T17:49:22+13:00 (21 years ago)
Author:
mdewsnip
Message:

Commented out check for spaces in filenames - why is it there?? Instead the spaces are converted to "%20"s.

File:
1 edited

Legend:

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

    r5680 r5765  
    131131    return 0 if ($file eq "" || $filename eq "");
    132132
    133     if ($filename =~ m/ /) {
    134     print $outhandle "UnknownPlug: \"$filename\" contains a space. choking.\n";
    135     return undef;
    136     }
     133    # if ($filename =~ m/ /) {
     134    # print $outhandle "UnknownPlug: \"$filename\" contains a space. choking.\n";
     135    # return undef;
     136    # }
     137
     138    # Escape spaces in the filename
     139    $filename =~ s/ /%20/g;
     140    $file =~ s/ /%20/g;
    137141
    138142    # Add the file as an associated file ...
Note: See TracChangeset for help on using the changeset viewer.