Changeset 18282 for gsdl/trunk

Show
Ignore:
Timestamp:
19.12.2008 13:48:37 (11 years ago)
Author:
ak19
Message:

Spaces in filenames are replaced with underscores just to be on the safe side. Tested that files with spaces in their names still work when using the Remote GS server and also work in the local case (such as mp3 and wmv files).

Location:
gsdl/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/gsConvert.pl

    r18202 r18282  
    735735    my ($pre, $text, $post) = @_; 
    736736 
    737     $text =~ s/%20/ /g; # reinstated this line, since we no longer replace spaces with %20 
     737    $text =~ s/%20/_/g; # reinstated this line, since we no longer replace spaces with %20. We replace them with underscores 
    738738    $text =~ s/\\/\//g; 
    739739    $text =~ s/%/%25/g; 
  • gsdl/trunk/perllib/unicode.pm

    r18245 r18282  
    581581    my ($text) = @_; 
    582582    if (!&is_url_encoded($text)) { 
     583    $text =~ s/ /_/g;             # spaces replaced with underscore 
    583584    $text =~ s/([^A-Z0-9\ \.\-\_])/sprintf("%%%02X", ord($1))/iseg; 
    584585    }