Skip to content

Commit

Permalink
Fixed bug with absolute_urls=true
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Feb 17, 2018
1 parent d39253e commit 39783df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/src/Grav/Common/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ public static function cleanPath($path)
*/
public static function filterUserInfo($info)
{
return UriPartsFilter::filterUserInfo($info);
return $info !== null ? UriPartsFilter::filterUserInfo($info) : '';
}

/**
Expand All @@ -1218,7 +1218,7 @@ public static function filterUserInfo($info)
*/
public static function filterPath($path)
{
return UriPartsFilter::filterPath($path);
return $path !== null ? UriPartsFilter::filterPath($path) : '';
}

/**
Expand All @@ -1229,6 +1229,6 @@ public static function filterPath($path)
*/
public static function filterQuery($query)
{
return UriPartsFilter::filterQueryOrFragment($query);
return $query !== null ? UriPartsFilter::filterQueryOrFragment($query) : '';
}
}

0 comments on commit 39783df

Please sign in to comment.