git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bc42453
)
Fix queue deletion for The_legend_of_ice_soul
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 19 Sep 2020 18:46:47 +0000
(20:46 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 19 Sep 2020 18:46:47 +0000
(20:46 +0200)
www/api/v1/queued_downloads_delete.php
patch
|
blob
|
history
diff --git
a/www/api/v1/queued_downloads_delete.php
b/www/api/v1/queued_downloads_delete.php
index 43f7440054200655010d45600d61c400295b44ec..6517adca2be082884f758a4f6585218d09961216 100644
(file)
--- a/
www/api/v1/queued_downloads_delete.php
+++ b/
www/api/v1/queued_downloads_delete.php
@@
-21,7
+21,7
@@
if ($ip == '') {
$ip = mapIp($ip);
$game = $_GET['game'];
-$cleanGame = preg_replace('#[^a-zA-Z0-9.]#', '', $game);
+$cleanGame = preg_replace('#[^a-zA-Z0-9.
_
]#', '', $game);
if ($game != $cleanGame || $game == '') {
header('HTTP/1.0 400 Bad Request');
header('Content-type: text/plain');