WordPress.org

Plugin Directory

Changeset 698346


Ignore:
Timestamp:
04/16/13 08:27:17 (12 months ago)
Author:
donncha
Message:

Remove just the leading mfunc tag to mangle dynamic code inserted into comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache.php

    r697745 r698346  
    31583158 
    31593159    if ( preg_match( '/<!--\s*mclude|<!--\s*mfunc|<!--\s*dynamic-cached-content/i', $text )) {  
    3160         $text = preg_replace( '#(<!--\s*(mclude|mfunc|dynamic-cached-content)\s*-+>)#ism','<!-- unsafe comment zapped -->', $text ); 
     3160        $text = preg_replace( '#(<!--\s*(mclude|mfunc|dynamic-cached-content))#ism','<!-- unsafe comment zapped -->', $text ); 
    31613161        if ( is_array( $comment_data ) ) 
    31623162            $comment_data[ 'comment_content' ] = $text; 
Note: See TracChangeset for help on using the changeset viewer.