diff --git a/src/static/php/upload.php b/src/static/php/upload.php index 6d60800..ee6048e 100644 --- a/src/static/php/upload.php +++ b/src/static/php/upload.php @@ -46,7 +46,7 @@ $response->error(400, 'No input file(s)'); } if (isset($_GET['output']) and !empty($_GET['output'])) { - $resType = filter_var($_GET['output'], FILTER_SANITIZE_SPECIAL_CHARS); + $resType = strtolower(preg_replace('/[^a-zA-Z]/', '', $_GET['output'])); } else { $resType = 'json'; }