woothemes/woocommerce — pull request #6446 by ragulka (2014-10-01 18:31:38+00:00)
Title: Do not escape redirect url in form handler

Escaping the redirect URL in WC Form Handler serves no purpose as escaping is required when outputting the URL in HTML. WordPress itself does also not escape the redirect URL in it's own login handler (wp-login.php).

Escaping the URL also causes issues when the URL contains query vars, for example: `http://example.com/?foo=bar&baz=bux` becomes `http://example.com/?foo=bar&baz=bux` - which breaks the redirect, as wp_redirect does not convert HTML entities back to ampersands.

Feel free to offer alternative solutions.