Skip to content

Commit

Permalink
Merge pull request #650 from craftcms/oli-fix
Browse files Browse the repository at this point in the history
Fix issue #647
  • Loading branch information
angrybrad authored Jan 15, 2020
2 parents 0e37ee7 + 0365d33 commit b00e2fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/DataTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public function getRawData($url, $feedId = null)

$url = Craft::getAlias($url);

// Check for local or relative URL
if (strpos($url, '://') === false && !UrlHelper::isProtocolRelativeUrl($url) && !UrlHelper::isRootRelativeUrl($url)) {
// If the path starts with / but not //
if (strpos($url, '/') === 0 && !UrlHelper::isProtocolRelativeUrl($url)) {
error_clear_last();

$filepath = realpath($url);
Expand Down

0 comments on commit b00e2fd

Please sign in to comment.