Changeset 2082 for branches/branch-1_7


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

Resolved 0000738: Double port on url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/functions_url.inc.php

    r1982 r2082  
    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.