예제 #1
0
 function url_regularization(&$url)
 {
     if (HypCommonFunc::get_version() < '20080226') {
         return $url;
     }
     if ($arr = HypCommonFunc::i18n_parse_url($url)) {
         $url = $arr['scheme'] . '://' . $arr['host'] . (isset($arr['port']) ? ':' . $arr['port'] : '') . (isset($arr['path']) ? $arr['path'] : '') . (isset($arr['query']) ? '?' . $arr['query'] : '') . (isset($arr['fragment']) ? '#' . $arr['fragment'] : '');
     }
     return $url;
 }