Skip to content

Commit

Permalink
Fixed case where base_url was empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Sep 2, 2014
1 parent e40ea38 commit 891751d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Markdown/MarkdownGravLinkTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 891751d

Please sign in to comment.