Commit 9f95d03e authored by Gribnif's avatar Gribnif Committed by joseph.olstad

Issue #2879976 by Gribnif: plugins=undefined , likely get parameters that were...

Issue #2879976 by Gribnif: plugins=undefined , likely get parameters that were already cached previously, but still show up, review patch
parent 8f93a292
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment