mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 14:38:13 +01:00
Fix for undefined array key path triggered through url encoded characters (#4012)
This commit is contained in:
@@ -744,7 +744,7 @@ class Grav extends Container
|
||||
$supported_types = $config->get('media.types');
|
||||
|
||||
$parsed_url = parse_url(rawurldecode($uri->basename()));
|
||||
$media_file = $parsed_url['path'];
|
||||
$media_file = isset($parsed_url['path']) ? $parsed_url['path'] : '';
|
||||
|
||||
$event = new Event([
|
||||
'uri' => $uri,
|
||||
|
||||
Reference in New Issue
Block a user