diff --git a/core/modules/media/src/Controller/OEmbedIframeController.php b/core/modules/media/src/Controller/OEmbedIframeController.php index a32533f5d31dc9d8a2e49b6e588e36f5c89979fb..a19d2b65e9be39004b0cb7890879b08d27d654b4 100644 --- a/core/modules/media/src/Controller/OEmbedIframeController.php +++ b/core/modules/media/src/Controller/OEmbedIframeController.php @@ -121,8 +121,8 @@ public static function create(ContainerInterface $container) { */ public function render(Request $request) { $url = $request->query->get('url'); - $max_width = $request->query->getInt('max_width', NULL); - $max_height = $request->query->getInt('max_height', NULL); + $max_width = $request->query->getInt('max_width'); + $max_height = $request->query->getInt('max_height'); // Hash the URL and max dimensions, and ensure it is equal to the hash // parameter passed in the query string.