Ignore:
Timestamp:
2008-08-13T16:32:49+12:00 (16 years ago)
Author:
ak19
Message:

URL encodes filenames in order to handle cases of multilingual images being referenced or images being referenced from html files using URL-encoding

File:
1 edited

Legend:

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

    r16383 r16768  
    9898    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
    9999    if ($self->{'image_conversion_available'} == 1) {
    100     $self->generate_images($filename_full_path, $self->filepath_to_utf8($filename_no_path), $doc_obj, $doc_obj->get_top_section()); # should we check the return value?
     100    my $utf8_filename_no_path = $self->filepath_to_utf8($filename_no_path);
     101    my $url_encoded_filename = &unicode::url_encode($utf8_filename_no_path);
     102    $self->generate_images($filename_full_path, $url_encoded_filename, $doc_obj, $doc_obj->get_top_section()); # should we check the return value?
    101103    } else {
    102104    # do some basic stuff
Note: See TracChangeset for help on using the changeset viewer.