From cd30dfdc0d76daa04e66dd88947bd457c6773326 Mon Sep 17 00:00:00 2001 From: camer0n Date: Thu, 16 Jan 2025 11:23:25 -0800 Subject: [PATCH] Fixes #5396 toVideo dimensions. --- e107_handlers/e_parse_class.php | 5 ++++ e107_handlers/media_class.php | 3 +- e107_tests/tests/unit/e_parseTest.php | 40 ++++++++++++++++++++++++--- 3 files changed, 43 insertions(+), 5 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 59204e656..e4fe59d60 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -5112,6 +5112,11 @@ class e_parse $height = varset($parm['h'], 240); $mime = varset($parm['mime'], 'video/mp4'); + if($height === 0) + { + $height = 'auto'; + } + return '