mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- intermediate results with sanitizing form handlers;
This commit is contained in:
@@ -48,7 +48,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
* @param bool $action
|
||||
*/
|
||||
function check_ajax_nonce( $action = false ) {
|
||||
$nonce = isset( $_REQUEST['nonce'] ) ? $_REQUEST['nonce'] : '';
|
||||
$nonce = isset( $_REQUEST['nonce'] ) ? sanitize_text_field( $_REQUEST['nonce'] ) : '';
|
||||
$action = empty( $action ) ? 'um-frontend-nonce' : $action;
|
||||
|
||||
if ( ! wp_verify_nonce( $nonce, $action ) ) {
|
||||
@@ -392,4 +392,4 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user