greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16247

Show
Ignore:
Timestamp:
2008-06-30 12:30:25 (5 months 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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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    #}