Changeset 16901 for gsdl/trunk/perllib/plugins/ImageConverter.pm
- Timestamp:
- 2008-08-19T14:37:56+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/ImageConverter.pm
r16846 r16901 186 186 } 187 187 188 # Images that will get generated may contain percent signs in their src filenames188 # The images that will get generated may contain percent signs in their src filenames 189 189 # Encode those percent signs themselves so that urls to the imgs refer to them correctly 190 my $url_to_filehead = $filehead; 191 $url_to_filehead =~ s/%/%25/g ;190 my $url_to_filehead = $filehead; 191 $url_to_filehead =~ s/%/%25/g if($url_to_filehead !~ m/%25/); 192 192 my $url_to_filename_no_path = $filename_no_path; 193 $url_to_filename_no_path =~ s/%/%25/g ;194 193 $url_to_filename_no_path =~ s/%/%25/g if($url_to_filename_no_path !~ m/%25/); 194 195 195 # Convert the image to a new type (if required). 196 196 my $converttotype = $self->{'converttotype'};
Note:
See TracChangeset
for help on using the changeset viewer.