Plugin Directory

Changeset 1333371


Ignore:
Timestamp:
01/22/2016 02:50:48 AM (10 years ago)
Author:
drobertsorg
Message:

Escape character handling for vote and bill descriptions

Location:
wp-legisearch/trunk/DataClasses
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-legisearch/trunk/DataClasses/Bill.class.php

    r1333363 r1333371  
    5858        switch( $name ) {
    5959            case 'description':
    60                 return $this->_ls_data->$name;
     60                return stripslashes( $this->_ls_data->$name );
    6161                break;
    6262            case 'state_name':  // Special case - we like user-friendly state names sometimes
  • wp-legisearch/trunk/DataClasses/Vote.class.php

    r1279167 r1333371  
    3636            case 'bill_os_id':
    3737                if ( $this->_ls_data ) {
    38                     return $this->_ls_data->$name;
     38                    return stripslashes( $this->_ls_data->$name );
    3939                }
    4040                else {
Note: See TracChangeset for help on using the changeset viewer.