Changeset 17127 for gsdl/trunk/perllib


Ignore:
Timestamp:
2008-09-04T09:50:57+12:00 (16 years ago)
Author:
kjdon
Message:

want to block body background, so added it into tabbg_matches regex for file blocking

File:
1 edited

Legend:

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

    r17088 r17127  
    585585    my @link_matches = ($$textref =~ m/<link[^>]*?href\s*=\s*($attval)[^>]*>/igs);
    586586    my @embed_matches = ($$textref =~ m/<embed[^>]*?src\s*=\s*($attval)[^>]*>/igs);
    587     my @tabbg_matches = ($$textref =~ m/<(?:table|tr|td)[^>]*?background\s*=\s*($attval)[^>]*>/igs);
     587    my @tabbg_matches = ($$textref =~ m/<(?:body|table|tr|td)[^>]*?background\s*=\s*($attval)[^>]*>/igs);
    588588    my @script_matches = ($$textref =~ m/<script[^>]*?src\s*=\s*($attval)[^>]*>/igs);
    589589
     
    611611    }
    612612    $link = $self->eval_dir_dots($link);
    613    
    614613
    615614    # this is the actual filename on the filesystem (that the link refers to)
     
    10031002    my $img_file =  $self->add_file ($href, $rl, $hash_part, $base_dir, $doc_obj, $section);
    10041003
    1005 #    print STDERR "**** link = $link\n**** href = $href\n**** img_file = $img_file\n";
     1004#    print STDERR "**** link = $link\n**** href = $href\n**** img_file = $img_file, rl = $rl\n";
    10061005
    10071006    my $anchor_name = $img_file;
Note: See TracChangeset for help on using the changeset viewer.