diff --git a/transformation_wrapper.php b/transformation_wrapper.php index 0b87b43c25..138235f135 100644 --- a/transformation_wrapper.php +++ b/transformation_wrapper.php @@ -23,6 +23,26 @@ $cfgRelation = PMA_getRelationsParam(); require_once './libraries/db_table_exists.lib.php'; +/** + * Sets globals from $_REQUEST + */ +$request_params = array( + 'cn', + 'ct', + 'newHeight', + 'newWidth', + 'resize', + 'sql_query', + 'transform_key', + 'where_clause' +); +foreach ($request_params as $one_request_param) { + if (isset($_REQUEST[$one_request_param])) { + $GLOBALS[$one_request_param] = $_REQUEST[$one_request_param]; + } +} + + /** * Get the list of the fields of the current table */