Merge pull request #1140 from ultimatemember/fix/unslash_password

Password with quotes
This commit is contained in:
Nikita Sinelnikov
2023-03-27 10:59:45 +03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -368,7 +368,7 @@ if ( ! class_exists( 'um\core\Account' ) ) {
if ( um_submitting_account_page() ) {
UM()->form()->post_form = $_POST;
UM()->form()->post_form = wp_unslash( $_POST );
/**
* UM hook
+2 -2
View File
@@ -330,7 +330,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
}
if ( $this->is_reset_request() ) {
UM()->form()->post_form = $_POST;
UM()->form()->post_form = wp_unslash( $_POST );
if ( empty( UM()->form()->post_form['mode'] ) ) {
UM()->form()->post_form['mode'] = 'password';
@@ -382,7 +382,7 @@ if ( ! class_exists( 'um\core\Password' ) ) {
}
if ( $this->is_change_request() ) {
UM()->form()->post_form = $_POST;
UM()->form()->post_form = wp_unslash( $_POST );
/**
* UM hook