Do not escape redirect url in form handler
This commit is contained in:
parent
0a7a72c3ca
commit
97ccd7c50f
|
@ -772,11 +772,11 @@ class WC_Form_Handler {
|
|||
} else {
|
||||
|
||||
if ( ! empty( $_POST['redirect'] ) ) {
|
||||
$redirect = esc_url( $_POST['redirect'] );
|
||||
$redirect = $_POST['redirect'];
|
||||
} elseif ( wp_get_referer() ) {
|
||||
$redirect = esc_url( wp_get_referer() );
|
||||
$redirect = wp_get_referer();
|
||||
} else {
|
||||
$redirect = esc_url( get_permalink( wc_get_page_id( 'myaccount' ) ) );
|
||||
$redirect = get_permalink( wc_get_page_id( 'myaccount' ) );
|
||||
}
|
||||
|
||||
// Feedback
|
||||
|
|
Loading…
Reference in New Issue