Sanitise log file names
rodzic
80d4c9093e
commit
a1953bc7ac
|
@ -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 = "";
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue