Changeset 10277
- Timestamp:
- 2005-07-25T14:00:12+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/HTMLPlug.pm
r10218 r10277 118 118 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 119 119 push(@$pluginlist, $class); 120 120 121 121 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 122 122 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 123 123 124 124 125 my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs); 125 126 126 127 if ($self->{'w3mir'}) { 127 128 $self->{'file_is_url'} = 1; 128 129 } 129 130 130 $self->{'aux_files'} = {}; 131 131 $self->{'dir_num'} = 0; … … 158 158 159 159 my ($language, $encoding) = $self->textcat_get_language_encoding ($filename); 160 160 161 161 # read in file ($text will be in utf8) 162 162 my $text = ""; … … 212 212 $file =~ s@(\\)+@/@g; 213 213 } 214 214 215 215 # reset per-doc stuff... 216 216 $self->{'aux_files'} = {}; … … 484 484 # is an escape code following. (Macro parsing loses them...) 485 485 $$textref =~ s/\\/\\\\/go; 486 486 487 $doc_obj->add_utf8_text($cursection, $$textref); 487 488 } … … 572 573 573 574 my $filename = $href; 574 $filename =~ s/^[^:]*:\/\///; 575 if ($base_dir eq "") { 576 # remove http:/ thereby leaving one slash at the start 577 $filename =~ s/^[^:]*:\///; 578 } 579 else { 580 # remove http:// 581 $filename =~ s/^[^:]*:\/\///; 582 } 583 575 584 $filename = &util::filename_cat($base_dir, $filename); 576 585
Note:
See TracChangeset
for help on using the changeset viewer.