From 891751d09ec24087eeaef9d42209d92251760c98 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 2 Sep 2014 16:58:55 -0500 Subject: [PATCH] Fixed case where base_url was empty --- system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php b/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php index 1206ac654..29aa68009 100644 --- a/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php +++ b/system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php @@ -107,7 +107,7 @@ protected function identifyLink($Excerpt) 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) {