Make WordPress Core


Ignore:
Timestamp:
10/17/2022 12:09:54 PM (2 years ago)
Author:
audrasjb
Message:

General: Validate host on "Are you sure?" screen.

Props voldemortensen, xknown, peterwiloncc.

Merges [54522] to the 6.0 branch.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/src/wp-includes/functions.php

    r53380 r54532  
    35813581        $html = __( 'The link you followed has expired.' );
    35823582        if ( wp_get_referer() ) {
     3583            $wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
     3584            $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
    35833585            $html .= '</p><p>';
    35843586            $html .= sprintf(
    35853587                '<a href="%s">%s</a>',
    3586                 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ),
     3588                esc_url( $wp_http_referer ),
    35873589                __( 'Please try again.' )
    35883590            );
Note: See TracChangeset for help on using the changeset viewer.