Do not escape redirect url in form handler

This commit is contained in:
Illimar Tambek 2014-10-01 21:24:11 +03:00
parent 0a7a72c3ca
commit 97ccd7c50f
1 changed files with 3 additions and 3 deletions

View File

@ -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