X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/08f4b9f0c2dd0ab2db8b59226a757ed479ffc2d7..3771acf28944bb6d7e82bc425e7745c5524ae199:/www/push-to-my-ouya.php diff --git a/www/push-to-my-ouya.php b/www/push-to-my-ouya.php index 12c9077..ae0c44b 100644 --- a/www/push-to-my-ouya.php +++ b/www/push-to-my-ouya.php @@ -9,6 +9,8 @@ * Maximal 30 games per IP to prevent flooding. * * @author Christian Weiske + * @see api/v1/queued_downloads.php + * @see api/v1/queued_downloads_delete.php */ $dbFile = __DIR__ . '/../data/push-to-my-ouya.sqlite3'; $apiGameDir = __DIR__ . '/api/v1/details-data/'; @@ -33,7 +35,7 @@ if (!isset($_GET['game'])) { } $game = $_GET['game']; -$cleanGame = preg_replace('#[^a-zA-Z0-9.]#', '', $game); +$cleanGame = preg_replace('#[^a-zA-Z0-9._]#', '', $game); if ($game != $cleanGame) { header('HTTP/1.0 400 Bad Request'); header('Content-type: text/plain');