Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/04/2010 04:48:24 PM (9 years ago)
Author:
boonebgorges
Message:

Adds stripslashes to option values on profile field admin. Fixes #2283 (1.2 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-xprofile/bp-xprofile-classes.php

    r3397 r3510  
    528528                        <p>
    529529                            <?php _e('Option', 'buddypress') ?> <?php echo $j ?>:
    530                             <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo esc_attr( $options[$i]->name ) ?>" />
     530                            <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo stripslashes( esc_attr( $options[$i]->name ) ) ?>" />
    531531                            <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name ?>" <?php if ( (int) $options[$i]->is_default_option ) {?> checked="checked"<?php } ?> value="<?php echo $j ?>" /> <?php _e( 'Default Value', 'buddypress' ) ?>
    532532
Note: See TracChangeset for help on using the changeset viewer.