Changeset 18201


Ignore:
Timestamp:
2008-12-15T14:10:06+13:00 (15 years ago)
Author:
ak19
Message:

When associated files are renamed with the URLencoded versions of their original filenames, the spaces are no longer URL encoded, as this conflicted with mp3, wmv and possibly other media file formats being opened in external or browser-embedded apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/unicode.pm

    r16933 r18201  
    579579    my ($text) = @_;
    580580    if (!&is_url_encoded($text)) {
    581     $text =~ s/([^A-Z0-9\.\-\_])/sprintf("%%%02X", ord($1))/iseg;
     581    $text =~ s/([^A-Z0-9\ \.\-\_])/sprintf("%%%02X", ord($1))/iseg;
    582582    }
    583583    return $text;
Note: See TracChangeset for help on using the changeset viewer.