Skip to content
Permalink
Browse files Browse the repository at this point in the history
Admin: Sanitize external links to activated BP component pages.
Props imath.
See #8235.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@12549 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
  • Loading branch information
mercime committed Jan 31, 2020
1 parent 98da00c commit 3929468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bp-core/admin/bp-core-admin-slugs.php
Expand Up @@ -145,7 +145,7 @@ function bp_core_admin_slugs_options() {

<?php if ( !empty( $existing_pages[$name] ) ) : ?>

<a href="<?php echo get_permalink( $existing_pages[$name] ); ?>" class="button-secondary" target="_bp"><?php _e( 'View', 'buddypress' ); ?></a>
<a href="<?php echo esc_url( get_permalink( $existing_pages[$name] ) ); ?>" class="button-secondary" target="_bp"><?php _e( 'View', 'buddypress' ); ?></a>

<?php endif; ?>

Expand Down

0 comments on commit 3929468

Please sign in to comment.