Fixed case where base_url was empty

This commit is contained in:
Your Name
2014-09-02 16:58:55 -05:00
parent e40ea38dd6
commit 891751d09e

View File

@@ -107,7 +107,7 @@ trait MarkdownGravLinkTrait
protected function convertUrl($markdown_url)
{
// if absolue and starts with a base_url move on
if (strpos($markdown_url, $this->base_url) === 0) {
if ($this->base_url == '' || strpos($markdown_url, $this->base_url) === 0) {
$new_url = $markdown_url;
// if its absolute with /
} elseif (strpos($markdown_url, '/') === 0) {