WordPress.org

Plugin Directory

Changeset 586266


Ignore:
Timestamp:
08/16/12 15:42:23 (21 months ago)
Author:
simonwheatley
Message:

Use strip_tags rather than wp_kses when stripping all tags

Location:
twitter-tracker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • twitter-tracker/trunk/class-TwitterTracker_Profile_Widget.php

    r586261 r586266  
    5757        // Delete the cache 
    5858        delete_option( 'twitter-tracker-profile' ); 
    59         $new_instance[ 'title' ] = wp_kses( $new_instance[ 'title' ] ); 
     59        $new_instance[ 'title' ] = strip_tags( $new_instance[ 'title' ] ); 
    6060        $new_instance[ 'preamble' ] = wp_kses( $new_instance[ 'preamble' ], $GLOBALS[ 'TwitterTracker' ]->allowed_html( 'preamble' ) ); 
    61         $new_instance[ 'username' ] = wp_kses( $new_instance[ 'username' ] ); 
     61        $new_instance[ 'username' ] = strip_tags( $new_instance[ 'username' ] ); 
    6262        $new_instance[ 'hide_replies' ] = (bool) $new_instance[ 'hide_replies' ]; 
    6363        $new_instance[ 'max_tweets' ] = absint( $new_instance[ 'max_tweets' ] ); 
    6464        $new_instance[ 'include_retweets' ] = (bool) $new_instance[ 'include_retweets' ]; 
    65         $new_instance[ 'mandatory_hash' ] = wp_kses( $new_instance[ 'mandatory_hash' ] ); 
     65        $new_instance[ 'mandatory_hash' ] = strip_tags( $new_instance[ 'mandatory_hash' ] ); 
    6666        $new_instance[ 'html_after' ] = wp_kses( $new_instance[ 'html_after' ], $GLOBALS[ 'TwitterTracker' ]->allowed_html( 'html_after' ) ); 
    6767        $new_instance[ 'class' ] = esc_attr( $new_instance[ 'class' ] ); 
  • twitter-tracker/trunk/class-TwitterTracker_Widget.php

    r586261 r586266  
    5757        // Delete the old widget options 
    5858        delete_option( 'widget_config_twitter-tracker-1' ); 
    59         $new_instance[ 'title' ] = wp_kses( $new_instance[ 'title' ] ); 
     59        $new_instance[ 'title' ] = strip_tags( $new_instance[ 'title' ] ); 
    6060        $new_instance[ 'preamble' ] = wp_kses( $new_instance[ 'preamble' ], $GLOBALS[ 'TwitterTracker' ]->allowed_html( 'preamble' ) ); 
    6161        $new_instance[ 'hide_replies' ] = (bool) $new_instance[ 'hide_replies' ]; 
    6262        $new_instance[ 'max_tweets' ] = absint( $new_instance[ 'max_tweets' ] ); 
    63         $new_instance[ 'mandatory_hash' ] = wp_kses( $new_instance[ 'mandatory_hash' ] ); 
     63        $new_instance[ 'mandatory_hash' ] = strip_tags( $new_instance[ 'mandatory_hash' ] ); 
    6464        $new_instance[ 'html_after' ] = wp_kses( $new_instance[ 'html_after' ], $GLOBALS[ 'TwitterTracker' ]->allowed_html( 'html_after' ) ); 
    6565        $new_instance[ 'class' ] = esc_attr( $new_instance[ 'class' ] ); 
Note: See TracChangeset for help on using the changeset viewer.