Make WordPress Core

Changeset 41427 for branches/3.8/src


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

Users: Provide a fallback for incorrect HTTP referrers.

Merge of [41398] to the 3.8 branch.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

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

    r37110 r41427  
    203203    <?php endif; ?>
    204204    <?php if ( $wp_http_referer && !IS_PROFILE_PAGE ) : ?>
    205     <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php _e('&larr; Back to Users'); ?></a></p>
     205    <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>
    206206    <?php endif; ?>
    207207</div>
Note: See TracChangeset for help on using the changeset viewer.