diff options
| author | pfdutot | 2021-11-26 22:31:53 +0100 |
|---|---|---|
| committer | GitHub | 2021-11-26 22:31:53 +0100 |
| commit | eede22217bb766a2982b10ee294f20c3bf4dea3e (patch) | |
| tree | 23c45977231ffd2855a44a66feb7c5bbc102c33e /config | |
| parent | 4a8e94f8624f187e71878cafa97a6d950c750e10 (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.rules | 4 |
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 | |||
| 111 | sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off."); | 111 | sp.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 |
| 114 | sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ph").drop(); | 114 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ph").drop(); |
| 115 | sp.disable_function.function("move_uploaded_file").param("destination").value_r("\\.ht").drop(); | 115 | sp.disable_function.function("move_uploaded_file").param("to").value_r("\\.ht").drop(); |
| 116 | 116 | ||
| 117 | # Logging lockdown | 117 | # Logging lockdown |
| 118 | sp.disable_function.function("ini_set").param("option").value_r("error_log").drop() | 118 | sp.disable_function.function("ini_set").param("option").value_r("error_log").drop() |
