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 164 164 165 165 $link = $m[1].'%s'.$m[3]; 166 166 $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 } 167 172 168 173 $parse = parse_url($m[2]); 169 174 if (empty($parse['scheme'])) … … 182 187 return sprintf($link,$url); 183 188 } 184 189 } 185 ?> 186 Pas de fin de ligne à la fin du fichier. 190 ?>
