Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/22/2014 03:50:03 PM (11 years ago)
Author:
djpaul
Message:

Improve string and textarea output escaping throughout BuddyPress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r7915 r7965  
    958958                                <h3><?php _e( 'Field Description', 'buddypress' ); ?></h3>
    959959                                <div class="inside">
    960                                     <textarea name="description" id="description" rows="8" cols="60"><?php echo esc_attr( $this->description ); ?></textarea>
     960                                    <textarea name="description" id="description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea>
    961961                                </div>
    962962                            </div>
     
    971971                                            <input type="hidden" name="field_order" id="field_order" value="<?php echo esc_attr( $this->field_order ); ?>" />
    972972                                            <div id="publishing-action">
    973                                                 <input type="submit" value="<?php _e( 'Save', 'buddypress' ); ?>" name="saveField" id="saveField" style="font-weight: bold" class="button-primary" />
     973                                                <input type="submit" value="<?php esc_attr_e( 'Save', 'buddypress' ); ?>" name="saveField" id="saveField" style="font-weight: bold" class="button-primary" />
    974974                                            </div>
    975975                                            <div id="delete-action">
     
    10421042                                    <div class="inside">
    10431043                                        <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%">
    1044                                             <optgroup label="<?php _e( 'Single Fields', 'buddypress' ); ?>">
     1044                                            <optgroup label="<?php esc_attr_e( 'Single Fields', 'buddypress' ); ?>">
    10451045                                                <option value="textbox"        <?php selected( $this->type, 'textbox'        ); ?>><?php _e( 'Text Box',             'buddypress' ); ?></option>
    10461046                                                <option value="textarea"       <?php selected( $this->type, 'textarea'       ); ?>><?php _e( 'Multi-line Text Area', 'buddypress' ); ?></option>
    10471047                                                <option value="datebox"        <?php selected( $this->type, 'datebox'        ); ?>><?php _e( 'Date Selector',        'buddypress' ); ?></option>
    10481048                                            </optgroup>
    1049                                             <optgroup label="<?php _e( 'Multi Fields', 'buddypress' ); ?>">
     1049                                            <optgroup label="<?php esc_attr_e( 'Multi Fields', 'buddypress' ); ?>">
    10501050                                                <option value="radio"          <?php selected( $this->type, 'radio'          ); ?>><?php _e( 'Radio Buttons',        'buddypress' ); ?></option>
    10511051                                                <option value="selectbox"      <?php selected( $this->type, 'selectbox'      ); ?>><?php _e( 'Drop Down Select Box', 'buddypress' ); ?></option>
Note: See TracChangeset for help on using the changeset viewer.