Plugin Directory

Changeset 354989

Timestamp:
03/03/2011 11:04:06 PM (13 years ago)
Author:
jghazally
Message:

swap around nl2br with esc_html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-includes/purchaselogs.class.php

    r354988 r354989  
    465465        $state = $purchlogitem->userinfo['billingstate']['value'];
    466466
    467    return esc_html( nl2br(trim(htmlentities( stripslashes( $purchlogitem->userinfo['billingaddress']['value'] ), ENT_QUOTES, 'UTF-8'), "\n\r"))).'<br />'.
     467   return trim(htmlentities( stripslashes( $purchlogitem->userinfo['billingaddress']['value'] ), ENT_QUOTES, 'UTF-8'), "\n\r"))).'<br />'.
    468468   esc_html( htmlentities( stripslashes( $state ), ENT_QUOTES, 'UTF-8') ).', '.
    469469   esc_html( htmlentities( stripslashes( $purchlogitem->userinfo['billingpostcode']['value'] ), ENT_QUOTES, 'UTF-8') ).'<br />'.esc_html( htmlentities( stripslashes( $purchlogitem->extrainfo->billing_country ), ENT_QUOTES, 'UTF-8') ) ;
Note: See TracChangeset for help on using the changeset viewer.