sanitize _POST

This commit is contained in:
Gary Ritchie 2017-09-22 20:52:38 -07:00
parent 552fa3d107
commit cc44e72e61
1 changed files with 1 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ class WC_Form_Handler {
} }
if ( ! empty( $_POST['redirect'] ) ) { if ( ! empty( $_POST['redirect'] ) ) {
$redirect = $_POST['redirect']; $redirect = wp_sanitize_redirect( $_POST['redirect'] );
} elseif ( wc_get_raw_referer() ) { } elseif ( wc_get_raw_referer() ) {
$redirect = wc_get_raw_referer(); $redirect = wc_get_raw_referer();
} else { } else {