Permalink
Browse files

Fix URL Encoding on redirect. Fixes issue #314

  • Loading branch information...
1 parent bc422ba commit b09f505aa3463c37cb4286c83c2e260fd18e6bf6 @markkevans markkevans committed Aug 7, 2011
Showing with 6 additions and 0 deletions.
  1. +3 −0 catalog/admin/includes/functions/general.php
  2. +3 −0 catalog/includes/functions/general.php
@@ -31,6 +31,9 @@ function tep_redirect($url) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}
+ if ( strpos($url, '&') !== false ) {
+ $url = str_replace('&', '&', $url);
+ }
header('Location: ' . $url);
if (STORE_PAGE_PARSE_TIME == 'true') {
@@ -42,6 +42,9 @@ function tep_redirect($url) {
}
}
+ if ( strpos($url, '&') !== false ) {
+ $url = str_replace('&', '&', $url);
+ }
header('Location: ' . $url);
tep_exit();

0 comments on commit b09f505

Please sign in to comment.