From 2a1afddaa5cf02dbf2bee047cdfb3bc7eb987883 Mon Sep 17 00:00:00 2001 From: Daniel Upstone Date: Wed, 4 Sep 2024 17:56:58 +0100 Subject: [PATCH] Support urlArgs in parseEVL Limit explode to 1 part, with the remaining string being the value. --- includes/EmbedVideo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EmbedVideo.php b/includes/EmbedVideo.php index bf41d2b..611144e 100644 --- a/includes/EmbedVideo.php +++ b/includes/EmbedVideo.php @@ -152,7 +152,7 @@ public static function parseEVL( Parser $parser, PPFrame $frame, array $args ): $value = trim( $frame->expand( $arg ) ); if ( str_contains( $value, '=' ) ) { - $parts = array_map( 'trim', explode( '=', $value ) ); + $parts = array_map( 'trim', explode( '=', $value, 1 ) ); $expandedArgs[$parts[0]] = $parts[1] ?? null; } else {