Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2020-03-18 01:46:20 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2020-03-18 01:46:20 +0300
commit799ce5e3a6802acc4a8c892cd1fdee62233d0569 (patch)
tree9c0968944d74409aa0286fe8956d3ccfd52a993f /libraries
parent13e6a018382e069820dec03e9af46ba118d62c00 (diff)
Add warning for external transformations option usage
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php b/libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php
index d3286aa563..f29f373254 100644
--- a/libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php
+++ b/libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php
@@ -108,6 +108,16 @@ abstract class ExternalTransformationsPlugin extends TransformationsPlugin
$program = $allowed_programs[0];
}
+ if (isset($options[1]) && strlen((string) $options[1]) > 0) {
+ trigger_error(sprintf(
+ __(
+ 'You are using the options field, which has been deprecated for security reasons. '
+ . 'Add all command line options directly to the definition in %s.'
+ ),
+ '[code]libraries/classes/Plugins/Transformations/Abs/ExternalTransformationsPlugin.php[/code]'
+ ), E_USER_DEPRECATED);
+ }
+
// needs PHP >= 4.3.0
$newstring = '';
$descriptorspec = array(