Networks and Sites: Sanitize key parameter in wp-activate.php.
Props khushipatel15. Fixes #63320. Built from https://develop.svn.wordpress.org/trunk@60204 git-svn-id: http://core.svn.wordpress.org/trunk@59540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -29,9 +29,9 @@ $result = null;
|
||||
if ( isset( $_GET['key'] ) && isset( $_POST['key'] ) && $_GET['key'] !== $_POST['key'] ) {
|
||||
wp_die( __( 'A key value mismatch has been detected. Please follow the link provided in your activation email.' ), __( 'An error occurred during the activation' ), 400 );
|
||||
} elseif ( ! empty( $_GET['key'] ) ) {
|
||||
$key = $_GET['key'];
|
||||
$key = sanitize_text_field( $_GET['key'] );
|
||||
} elseif ( ! empty( $_POST['key'] ) ) {
|
||||
$key = $_POST['key'];
|
||||
$key = sanitize_text_field( $_POST['key'] );
|
||||
}
|
||||
|
||||
if ( $key ) {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60203';
|
||||
$wp_version = '6.9-alpha-60204';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user