diff --git a/media.module b/media.module index 6232c82bc187e02aacf06d19c4a4e08d8ffbb080..f008116196b95e459296574cf6f3e3955680350a 100644 --- a/media.module +++ b/media.module @@ -1229,9 +1229,9 @@ function media_set_browser_params() { ); $params = array_intersect_key($params, array_flip($safe_options)); - // Retrieve the security sensitive options from the cache. + // If the cache is present, use its values instead of the GET parameters. if (!empty($params['options']) && is_string($params['options']) && $options = cache_get('media_options:' . $params['options'], 'cache_form')) { - $params = array_merge($options->data, $params); + $params = $options->data; } // Transform text 'true' and 'false' to actual booleans.