From e23143ad0da1e8a0ba80ae583ab4cbcad390ff99 Mon Sep 17 00:00:00 2001 From: "H. C. Kruse" Date: Tue, 10 Sep 2024 15:28:09 +0200 Subject: [PATCH] feat: Add urArgs support to evl/vlink Fixes #101 --- includes/EmbedVideo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/EmbedVideo.php b/includes/EmbedVideo.php index 34217a8..d546f5e 100644 --- a/includes/EmbedVideo.php +++ b/includes/EmbedVideo.php @@ -144,6 +144,7 @@ public static function parseEVL( Parser $parser, PPFrame $frame, array $args ): 'text' => null, 'player' => null, 'service' => null, + 'urlArgs' => null, ]; $keys = array_keys( $expandedArgs ); @@ -152,7 +153,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, 2 ) ); $expandedArgs[$parts[0]] = $parts[1] ?? null; } else {