Ignore:
Timestamp:
Aug 30, 2007, 7:32:37 AM (17 years ago)
Author:
rub
Message:

Resolved 0000738: Double port on url

Merge branch-1_7 2048:2050 into BSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r2047 r2083  
    6262  {
    6363    $url .= 'http://'.$_SERVER['HTTP_HOST'];
    64     if ($_SERVER['SERVER_PORT']!=80)
    65     {
    66       $url .= ':'.$_SERVER['SERVER_PORT'];
     64    if ($_SERVER['SERVER_PORT'] != 80)
     65    {
     66      $url_port = ':'.$_SERVER['SERVER_PORT'];
     67      if (strrchr($url, ':') != $url_port)
     68      {
     69        $url .= $url_port;
     70      }
    6771    }
    6872  }
Note: See TracChangeset for help on using the changeset viewer.