Changeset 18320 for gsdl/trunk/perllib/plugins/HTMLPlugin.pm
- Timestamp:
- 2009-01-06T19:03:58+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/HTMLPlugin.pm
r18135 r18320 635 635 # Given a filename in any encoding, will URL decode it to get back the original filename 636 636 # in the original encoding. Because this method is intended to work out the *original* 637 # filename*, it not URL decode any filename if a file by the name of the *URL-encoded*637 # filename*, it does not URL decode any filename if a file by the name of the *URL-encoded* 638 638 # string already exists in the local folder. 639 639 # Return the original filename corresponding to the parameter URL-encoded filename, and … … 1140 1140 } 1141 1141 1142 # Make sure this name uses only ASCII characters 1143 # => use URL encoding, as it preservesoriginal encoding1144 $newname = &u nicode::url_encode($newname);1142 # Make sure this name uses only ASCII characters. 1143 # We use either base64 or URL encoding, as these preserve original encoding 1144 $newname = &util::rename_file($newname, $self->{'file_rename_method'}); 1145 1145 1146 1146 $doc_obj->associate_file($filename, $newname, undef, $section);
Note:
See TracChangeset
for help on using the changeset viewer.