Skip to content

Commit

Permalink
Fixed #2133 - uppercase fallback media urls
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Aug 6, 2018
1 parent 18d405d commit 7d27206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* `FormatterInterface`: Added `getSupportedFileExtensions()` and `getDefaultFileExtension()` methods
1. [](#improved)
* Improved `Utils::url()` to support query strings
1. [](#bugfix)
* Fixed issue with uppercase extensions and fallback media URLs [#2133](https://github.com/getgrav/grav/issues/2133)

# v1.5.0-rc.1
## 07/31/2018
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Grav.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public function fallbackUrl($path)
/** @var Config $config */
$config = $this['config'];

$uri_extension = $uri->extension();
$uri_extension = strtolower($uri->extension());
$fallback_types = $config->get('system.media.allowed_fallback_types', null);
$supported_types = $config->get('media.types');

Expand Down

0 comments on commit 7d27206

Please sign in to comment.