WordPress.org

Plugin Directory

Changeset 614696


Ignore:
Timestamp:
10/19/12 19:32:13 (18 months ago)
Author:
MattyRob
Message:

Apply stip_tags to email subject in a better place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/classes/class-s2-core.php

    r614237 r614696  
    260260        $string = str_replace("{BLOGNAME}", html_entity_decode(get_option('blogname'), ENT_QUOTES), $string); 
    261261        $string = str_replace("{BLOGLINK}", get_option('home'), $string); 
    262         $string = str_replace("{TITLE}", stripslashes(strip_tags($this->post_title)), $string); 
     262        $string = str_replace("{TITLE}", stripslashes($this->post_title), $string); 
    263263        $link = "<a href=\"" . $this->get_tracking_link($this->permalink) . "\">" . $this->get_tracking_link($this->permalink) . "</a>"; 
    264264        $string = str_replace("{PERMALINK}", $link, $string); 
     
    306306 
    307307        // Replace any escaped html symbols in subject then apply filter 
    308         $subject = html_entity_decode($subject, ENT_QUOTES); 
     308        $subject = strip_tags(html_entity_decode($subject, ENT_QUOTES)); 
    309309        $subject = apply_filters('s2_email_subject', $subject); 
    310310 
Note: See TracChangeset for help on using the changeset viewer.