mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed using "'" symbols in emails. There is possible to register with it and login after that. Closed #1059;
This commit is contained in:
@@ -445,7 +445,7 @@ if ( ! class_exists( 'um\core\Form' ) ) {
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
$this->post_form = apply_filters( 'um_submit_post_form', $_POST );
|
||||
$this->post_form = apply_filters( 'um_submit_post_form', wp_unslash( $_POST ) );
|
||||
|
||||
if ( isset( $this->post_form[ UM()->honeypot ] ) && '' !== $this->post_form[ UM()->honeypot ] ) {
|
||||
wp_die( esc_html__( 'Hello, spam bot!', 'ultimate-member' ) );
|
||||
|
||||
@@ -2107,7 +2107,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
update_user_meta( $this->id, $key, $value );
|
||||
}
|
||||
} else {
|
||||
$args[ $key ] = esc_attr( $changes[ $key ] );
|
||||
$args[ $key ] = $changes[ $key ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -806,7 +806,7 @@ function um_submit_form_errors_hook_( $args ) {
|
||||
$args['user_id'] = um_get_requested_user();
|
||||
}
|
||||
|
||||
$email_exists = email_exists( $args[ $key ] );
|
||||
$email_exists = email_exists( $args[ $key ] );
|
||||
|
||||
if ( $args[ $key ] == '' && in_array( $key, array( 'user_email' ) ) ) {
|
||||
UM()->form()->add_error( $key, __( 'You must provide your email', 'ultimate-member' ) );
|
||||
|
||||
Reference in New Issue
Block a user