Changeset 16899


Ignore:
Timestamp:
2008-08-19T14:29:36+12:00 (16 years ago)
Author:
ak19
Message:

Since the names of the file(s) generated upon conversion to html (incl assoc image files) are url encoded, the make_links_relative subroutine now ensures that urls referencings these assoc images use percent-25 for each occurrence of percent in the generated filenames.

File:
1 edited

Legend:

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

    r16552 r16899  
    729729# Utility routine to make sure HTML plugin gets img src/href link pathnames that contain
    730730# url slashes (/) instead of windows-style backwards slashes, and to convert all %20
    731 # introduced in link pathnames by wvWare into space again
     731# introduced in link pathnames by wvWare into space again. Converts all percent signs
     732# introduced by URL encoding filenames generated into %25 in these url links referencing them
    732733sub post_process_assocfile_urls
    733734{
    734735    my ($pre, $text, $post) = @_;
    735736
    736     $text =~ s/%20/ /g;
     737    #$text =~ s/%20/ /g;
    737738    $text =~ s/\\/\//g;
     739    $text =~ s/%/%25/g;
    738740
    739741    return "$pre$text$post";
Note: See TracChangeset for help on using the changeset viewer.