Dotclear

Changeset 1244:1adf76a9b5af


Ignore:
Timestamp:
07/28/13 22:19:08 (12 years ago)
Author:
Christopher Crouzet <christopher.crouzet@…>
Branch:
default
Message:

Fix to allow relative paths in the 'blog_url' variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r1179 r1244  
    8181               $this->desc = $b->blog_desc; 
    8282               $this->url = $b->blog_url; 
    83                $this->host = preg_replace('|^([a-z]{3,}://)(.*?)/.*$|','$1$2',$this->url); 
     83               $this->host = http::getHostFromURL($this->url); 
    8484               $this->creadt = strtotime($b->blog_creadt); 
    8585               $this->upddt = strtotime($b->blog_upddt); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map