Skip to content
Snippets Groups Projects
Commit 9f95d03e authored by Dan Wilga's avatar Dan Wilga Committed by Joseph Olstad
Browse files

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
Branches
Tags 7.x-3.0-beta1
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment