Make WordPress Core


Ignore:
Timestamp:
12/13/2018 01:48:48 AM (8 years ago)
Author:
peterwilsoncc
Message:

Multisite: Validate activation links.

Merges [44048] to the 4.3 branch.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-includes/class-wp.php

    r32708 r44063  
    269269                        if ( isset( $this->extra_query_vars[$wpvar] ) )
    270270                                $this->query_vars[$wpvar] = $this->extra_query_vars[$wpvar];
     271                        elseif ( isset( $_GET[ $wpvar ] ) && isset( $_POST[ $wpvar ] ) && $_GET[ $wpvar ] !== $_POST[ $wpvar ] )
     272                                wp_die( __( 'A variable mismatch has been detected.' ), __( 'Sorry, you are not allowed to view this item.' ), 400 );
    271273                        elseif ( isset( $_POST[$wpvar] ) )
    272274                                $this->query_vars[$wpvar] = $_POST[$wpvar];
Note: See TracChangeset for help on using the changeset viewer.