Dotclear

Ticket #877: lib.html.php.patch

File lib.html.php.patch, 628 bytes (added by dooblem, 16 years ago)
  • inc/clearbricks/common/lib.html.php

    old new  
    164164           
    165165          $link = $m[1].'%s'.$m[3]; 
    166166          $host = preg_replace('|^([a-z]{3,}://)(.*?)/(.*)$|','$1$2',self::$url_root); 
     167          # if url_root contains no http://host, host is invalid. 
     168          # we fallback to an empty host 
     169          if (strpos($host,':') === false) { 
     170               $host = ''; 
     171          } 
    167172           
    168173          $parse = parse_url($m[2]); 
    169174          if (empty($parse['scheme'])) 
     
    182187          return sprintf($link,$url); 
    183188     } 
    184189} 
    185 ?> 
    186  Pas de fin de ligne à la fin du fichier. 
     190?> 

Sites map