Skip to:
Content

BuddyPress.org

Changeset 6201


Ignore:
Timestamp:
07/27/2012 12:09:31 AM (14 years ago)
Author:
johnjamesjacoby
Message:

XProfile:

  • Properly escape xprofile_filter_link_profile_data() output.
  • For 1.5 branch.
  • Props vnd.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-xprofile/bp-xprofile-filters.php

    r5131 r6201  
    164164                        } else {
    165165                                if ( count( explode( ' ', $value ) ) > 5 ) {
    166                                         $new_values[] = $value;
     166                                        $new_values[] = esc_html( $value );
    167167                                } else {
    168                                         $new_values[] = '<a href="' . site_url( bp_get_members_root_slug() ) . '/?s=' . strip_tags( $value ) . '" rel="nofollow">' . $value . '</a>';
     168                                        $new_values[] = '<a href="' . site_url( bp_get_members_root_slug() ) . '/?s=' . esc_url( strip_tags( $value ) ) . '" rel="nofollow">' . esc_html( $value ) . '</a>';
    169169                                }
    170170                        }
Note: See TracChangeset for help on using the changeset viewer.