mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Update upload.php
This commit is contained in:
parent
c8a58be885
commit
928e83e1ab
@ -46,7 +46,7 @@
|
|||||||
$response->error(400, 'No input file(s)');
|
$response->error(400, 'No input file(s)');
|
||||||
}
|
}
|
||||||
if (isset($_GET['output']) and !empty($_GET['output'])) {
|
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 {
|
} else {
|
||||||
$resType = 'json';
|
$resType = 'json';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user