Cleanup file morti + fix FILTER_SANITIZE_STRING per PHP 8.4
This commit is contained in:
@@ -73,8 +73,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
foreach ($fields as $field) {
|
||||
if (!empty($_POST[$field])) {
|
||||
// Utilizzo FILTER_SANITIZE_STRING per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING);
|
||||
// Utilizzo FILTER_SANITIZE_FULL_SPECIAL_CHARS per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -3428,7 +3428,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_step2.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
50 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
50 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3436,7 +3436,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_step3.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
50 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
50 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3444,7 +3444,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_stepsummary.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
42 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
42 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3452,7 +3452,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_stepsummarynew.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
57 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
57 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3460,7 +3460,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_stepsummarynew8.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
57 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
57 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3468,7 +3468,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\techdossier_stepsummarypreview.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
74 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
74 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3636,7 +3636,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\tf_pdfcreation.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
77 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
77 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -3644,7 +3644,7 @@ FILE: C:\laragon\www\ppeasy-vanguard12\public\tf_pdfcreationbck100625.php
|
||||
----------------------------------------------------------------------------------
|
||||
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
|
||||
----------------------------------------------------------------------------------
|
||||
77 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
|
||||
77 | WARNING | The constant "FILTER_SANITIZE_FULL_SPECIAL_CHARS" is deprecated since PHP 8.1
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
foreach ($fields as $field) {
|
||||
if (!empty($_POST[$field])) {
|
||||
// Utilizzo FILTER_SANITIZE_STRING per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING);
|
||||
// Utilizzo FILTER_SANITIZE_FULL_SPECIAL_CHARS per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,17 +29,29 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
// Lista dei campi da sanificare e controllare se sono piene
|
||||
$fields = [
|
||||
'productionplace_same', 'classificationshoes', 'destinationuseppe',
|
||||
'manufacutringprocess', 'ppeageing', 'obsolescencedeadline',
|
||||
'localisationppemarking', 'manufacturerlogoid', 'sizeexamplecemark',
|
||||
'monthyearprod', 'serialbatchnumber', 'standarduse', 'symbolsaddreq',
|
||||
'proddescription', 'packaging', 'declarconformity', 'webaddress'
|
||||
'productionplace_same',
|
||||
'classificationshoes',
|
||||
'destinationuseppe',
|
||||
'manufacutringprocess',
|
||||
'ppeageing',
|
||||
'obsolescencedeadline',
|
||||
'localisationppemarking',
|
||||
'manufacturerlogoid',
|
||||
'sizeexamplecemark',
|
||||
'monthyearprod',
|
||||
'serialbatchnumber',
|
||||
'standarduse',
|
||||
'symbolsaddreq',
|
||||
'proddescription',
|
||||
'packaging',
|
||||
'declarconformity',
|
||||
'webaddress'
|
||||
];
|
||||
|
||||
foreach ($fields as $field) {
|
||||
if (!empty($_POST[$field])) {
|
||||
// Utilizzo FILTER_SANITIZE_STRING per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING);
|
||||
// Utilizzo FILTER_SANITIZE_FULL_SPECIAL_CHARS per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,8 +53,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
foreach ($fields as $field) {
|
||||
if (!empty($_POST[$field])) {
|
||||
// Utilizzo FILTER_SANITIZE_STRING per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_STRING);
|
||||
// Utilizzo FILTER_SANITIZE_FULL_SPECIAL_CHARS per rimuovere i tag e sanificare il testo
|
||||
$sanitizedPost[$field] = filter_input(INPUT_POST, $field, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3063
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user