summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgribnif2017-06-03 21:15:42 (GMT)
committerolstjos2017-06-03 21:15:42 (GMT)
commit9f95d03e3fc4259246af88faf9d521dc02627d89 (patch)
tree46fcb2364c6d647d3d1986b4ca760c27b00c67cf
parent8f93a292c43678aa8ab5030c9d013f76add75077 (diff)
Issue #2879976 by Gribnif: plugins=undefined , likely get parameters that were already cached previously, but still show up, review patch7.x-3.0-beta1
-rw-r--r--media.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/media.module b/media.module
index 6232c82..f008116 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.