Skip to:
Content

BuddyPress.org


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

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

File:
1 edited

Legend:

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

    r3455 r3509  
    576576?>
    577577                        <p><?php _e('Option', 'buddypress'); ?> <?php echo $j; ?>:
    578                            <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 ); ?>" />
     578                           <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 ) ); ?>" />
    579579                           <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' ); ?>
    580580<?php
Note: See TracChangeset for help on using the changeset viewer.