summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorpfdutot2021-11-26 22:31:53 +0100
committerGitHub2021-11-26 22:31:53 +0100
commiteede22217bb766a2982b10ee294f20c3bf4dea3e (patch)
tree23c45977231ffd2855a44a66feb7c5bbc102c33e /config
parent4a8e94f8624f187e71878cafa97a6d950c750e10 (diff)
PHP8 update parameters name in "move_uploaded_file" (#406)
In the 8.0.8 and 8.1 version of PHP, the parameters name for move_uploaded_file are "from" and "to". This config file fail to apply the relevant rules unless the parameter names are updated using "to" instead of "destination".
Diffstat (limited to 'config')
-rw-r--r--config/default_php8.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/default_php8.rules b/config/default_php8.rules
index 09296c3..2251f2f 100644
--- a/config/default_php8.rules
+++ b/config/default_php8.rules
@@ -111,8 +111,8 @@ sp.disable_function.function("curl_setopt").param("option").value("64").drop().a
111sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off."); 111sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off.");
112 112
113# File upload 113# File upload
114sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ph").drop(); 114sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ph").drop();
115sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ht").drop(); 115sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ht").drop();
116 116
117# Logging lockdown 117# Logging lockdown
118sp.disable_function.function("ini_set").param("option").value_r("error_log").drop() 118sp.disable_function.function("ini_set").param("option").value_r("error_log").drop()