Changeset 16247 for gsdl


Ignore:
Timestamp:
2008-06-30T12:30:25+12:00 (16 years ago)
Author:
ak19
Message:

Regular expression that processes imagelinks is slightly modified by putting some subelements of the expression in brackets, but each contains ?: at the start to ensure that the contents of the bracket-set are not stored in a variable and confuse the subsequent call to replace_images which already uses perl variables

File:
1 edited

Legend:

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

    r16104 r16247  
    905905
    906906    #if(!$self->{'no_image_links'}){
    907     $$textref =~ s/(<(?:img|embed|table|tr|td)[^>]*?(?:src|background)\s*=\s*)([\"][^\"]+[\"]|[\'][^\']+[\']|[^\s\/>]+)([^>]*>)/
     907    $$textref =~ s/(<(?:img|embed|table|tr|td)[^>]*?(?:src|background)\s*=\s*)((?:[\"][^\"]+[\"])|(?:[\'][^\']+[\'])|(?:[^\s\/>]+))([^>]*>)/
    908908    $self->replace_images ($1, $2, $3, $base_dir, $file, $doc_obj, $cursection)/isge;
    909909    #}
Note: See TracChangeset for help on using the changeset viewer.