Make WordPress Core

Changeset 41428 for branches/3.7/src


Ignore:
Timestamp:
09/19/2017 11:10:54 AM (8 years ago)
Author:
ocean90
Message:

Users: Provide a fallback for incorrect HTTP referrers.

Merge of [41398] to the 3.7 branch.

Location:
branches/3.7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src

  • branches/3.7/src/wp-admin/user-edit.php

    r37111 r41428  
    169169    <?php endif; ?>
    170170    <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
    171     <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
     171    <p><a href="<?php echo esc_url( wp_validate_redirect( wp_sanitize_redirect( $wp_http_referer ), self_admin_url( 'users.php' ) ) ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
    172172    <?php endif; ?>
    173173</div>
Note: See TracChangeset for help on using the changeset viewer.