Skip to:
Content

BuddyPress.org


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

Improve string and textarea output escaping throughout BuddyPress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/groups/create.php

    r6463 r7965  
    144144                                                <p>
    145145                                                        <input type="file" name="file" id="file" />
    146                                                         <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
     146                                                        <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
    147147                                                        <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    148148                                                </p>
     
    157157                                        <h4><?php _e( 'Crop Group Avatar', 'buddypress' ); ?></h4>
    158158
    159                                         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
     159                                        <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Avatar to crop', 'buddypress' ); ?>" />
    160160
    161161                                        <div id="avatar-crop-pane">
    162                                                 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
     162                                                <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php esc_attr_e( 'Avatar preview', 'buddypress' ); ?>" />
    163163                                        </div>
    164164
    165                                         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
     165                                        <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'buddypress' ); ?>" />
    166166
    167167                                        <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
     
    259259                                        <?php if ( !bp_is_first_group_creation_step() ) : ?>
    260260
    261                                                 <input type="button" value="<?php _e( 'Back to Previous Step', 'buddypress' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" />
     261                                                <input type="button" value="<?php esc_attr_e( 'Back to Previous Step', 'buddypress' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" />
    262262
    263263                                        <?php endif; ?>
     
    266266                                        <?php if ( !bp_is_last_group_creation_step() && !bp_is_first_group_creation_step() ) : ?>
    267267
    268                                                 <input type="submit" value="<?php _e( 'Next Step', 'buddypress' ); ?>" id="group-creation-next" name="save" />
     268                                                <input type="submit" value="<?php esc_attr_e( 'Next Step', 'buddypress' ); ?>" id="group-creation-next" name="save" />
    269269
    270270                                        <?php endif;?>
     
    273273                                        <?php if ( bp_is_first_group_creation_step() ) : ?>
    274274
    275                                                 <input type="submit" value="<?php _e( 'Create Group and Continue', 'buddypress' ); ?>" id="group-creation-create" name="save" />
     275                                                <input type="submit" value="<?php esc_attr_e( 'Create Group and Continue', 'buddypress' ); ?>" id="group-creation-create" name="save" />
    276276
    277277                                        <?php endif; ?>
     
    280280                                        <?php if ( bp_is_last_group_creation_step() ) : ?>
    281281
    282                                                 <input type="submit" value="<?php _e( 'Finish', 'buddypress' ); ?>" id="group-creation-finish" name="save" />
     282                                                <input type="submit" value="<?php esc_attr_e( 'Finish', 'buddypress' ); ?>" id="group-creation-finish" name="save" />
    283283
    284284                                        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.