diff --git a/index.php b/index.php index 03cb861..87e9d0e 100644 --- a/index.php +++ b/index.php @@ -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 = ""; }