Ignore:
Timestamp:
01/15/09 05:49:06 (3 years ago)
Author:
SvenDowideit
Message:

Item727: data loss issue when missing anchor or location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CommentPlugin/lib/Foswiki/Plugins/CommentPlugin/Comment.pm

    r1340 r1984  
    300300            $inpost = 1; 
    301301        } 
     302    } 
     303    #make sure the anchor or location exits 
     304    if (defined($location) and not($text =~ /(?<!location\=\")($location)/)) { 
     305        undef $location; 
     306    } 
     307    if (defined($anchor) and not($text =~ /^($anchor\s)/)) { 
     308        undef $anchor; 
    302309    } 
    303310 
Note: See TracChangeset for help on using the changeset viewer.