Skip to:
Content

BuddyPress.org

Changeset 3643 for trunk/bp-xprofile.php


Ignore:
Timestamp:
01/01/2011 09:36:22 PM (15 years ago)
Author:
djpaul
Message:

Escape xprofile base group name and fullname field name options on the settings screen. Fixes #2986

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile.php

    r3592 r3643  
    2626
    2727    /* Assign the base group and fullname field names to constants to use in SQL statements */
    28     define ( 'BP_XPROFILE_BASE_GROUP_NAME', $bp->site_options['bp-xprofile-base-group-name'] );
    29     define ( 'BP_XPROFILE_FULLNAME_FIELD_NAME', $bp->site_options['bp-xprofile-fullname-field-name'] );
     28    define ( 'BP_XPROFILE_BASE_GROUP_NAME', stripslashes( $bp->site_options['bp-xprofile-base-group-name'] ) );
     29    define ( 'BP_XPROFILE_FULLNAME_FIELD_NAME', stripslashes( $bp->site_options['bp-xprofile-fullname-field-name'] ) );
    3030
    3131    /* For internal identification */
Note: See TracChangeset for help on using the changeset viewer.