Code Duplication    Length = 3-3 lines in 2 locations

catalog/admin/includes/functions/general.php 1 location

@@ 30-32 (lines=3) @@
27
  function tep_redirect($url) {
28
    global $logger;
29
30
    if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
31
      tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL', false));
32
    }
33
34
    if ( strpos($url, '&') !== false ) {
35
      $url = str_replace('&', '&', $url);

catalog/includes/functions/general.php 1 location

@@ 35-37 (lines=3) @@
32
////
33
// Redirect to another page or site
34
  function tep_redirect($url) {
35
    if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
36
      tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
37
    }
38
39
    if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
40
      if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)) == HTTP_SERVER . DIR_WS_HTTP_CATALOG) { // NONSSL url