Permalink
Browse files

replace & with & in links (issue #96)

  • Loading branch information...
haraldpdl committed Nov 7, 2010
1 parent 69e04a3 commit ad2ef8fd22e0695d9452aa8fb46ce1cd394d2e96
Showing with 8 additions and 8 deletions.
  1. +8 −8 catalog/includes/functions/html_output.php
@@ -54,18 +54,18 @@ function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $ad
}
}
- if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
- while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
+ if (isset($_sid)) {
+ $link .= $separator . tep_output_string($_sid);
+ }
+ while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
+
+ if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
$link = str_replace('?', '/', $link);
$link = str_replace('&', '/', $link);
$link = str_replace('=', '/', $link);
-
- $separator = '?';
- }
-
- if (isset($_sid)) {
- $link .= $separator . tep_output_string($_sid);
+ } else {
+ $link = str_replace('&', '&', $link);
}
return $link;

0 comments on commit ad2ef8f

Please sign in to comment.