From f31e1552695bc4c6f6dbc878a94cee5548b0b192 Mon Sep 17 00:00:00 2001 From: Xoriander <6929400+Xoriander@users.noreply.github.com> Date: Wed, 4 Feb 2026 05:14:28 +0100 Subject: [PATCH] Fix for undefined array key path triggered through url encoded characters (#4012) --- system/src/Grav/Common/Grav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 892f1d065..51a5c8ec3 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -769,7 +769,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,