Sanitise log file names

merge-requests/5/head
Terence Eden 2024-02-18 14:32:12 +00:00
rodzic 80d4c9093e
commit a1953bc7ac
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -48,7 +48,8 @@
// Get the type of request - used in the log filename
if ( isset( $body["type"] ) ) {
$type = " " . $body["type"];
// Sanitise type to only include letter
$type = " " . preg_replace( '/[^a-zA-Z]/', '', $body["type"] );
} else {
$type = "";
}