Changeset 5356


Ignore:
Timestamp:
10/22/09 15:19:47 (2 years ago)
Author:
GeorgeClark
Message:

Item2183: Protect div with style= attribute by default

Location:
branches/Release01x00/WysiwygPlugin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/WysiwygPlugin/data/System/WysiwygPlugin.txt

    r4982 r5356  
    170170|  Release: | %$RELEASE% | 
    171171|  Change History: | | 
     172|  22 Oct 2009 | Foswikitask:Item2183: Protect div style= by default |  
    172173|  18 Sep 2009 | Foswikitask:Item1980: Prevent dataloss when saving a topic in Wysiwyg where there are a pair of sticky tags inside verbatim tags | 
    173174|  28 Jun 2009 | Foswikitask:Item1770: Protect XML tags registered by plugins, and not just the content between them (Michael Tempest) | 
  • branches/Release01x00/WysiwygPlugin/data/System/WysiwygPluginSettings.txt

    r5309 r5356  
    5656    COLGROUP=align,char,charoff,span,valign,width; 
    5757    DIR=compact; 
    58     DIV=align; 
     58    DIV=align,style; 
    5959    DL=compact; 
    6060    FONT=size,face; 
  • branches/Release01x00/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin.pm

    r5239 r5356  
    695695colgroup=align,char,charoff,span,valign,width; 
    696696dir=compact; 
    697 div=align; 
     697div=align,style; 
    698698dl=compact; 
    699699font=size,face; 
     
    729729    foreach my $row (@protectedByAttr) { 
    730730        if ( $tag =~ /^$row->{tag}$/i ) { 
    731             return 1 if ( $attr =~ /^($row->{attrs})$/i ); 
     731            if ( $attr =~ /^($row->{attrs})$/i ) { 
     732                #print STDERR "Protecting  $tag with $attr matches $row->{attrs} \n";    #debug 
     733                return 1; 
     734            } 
    732735        } 
    733736    } 
Note: See TracChangeset for help on using the changeset viewer.