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 (parent:
3565608
)
Allow push install of The_legend_of_ice_soul
author
Christian Weiske
<cweiske@cweiske.de>
Sat, 19 Sep 2020 10:13:52 +0000
(12:13 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Sat, 19 Sep 2020 10:13:52 +0000
(12:13 +0200)
www/push-to-my-ouya.php
patch
|
blob
|
history
diff --git
a/www/push-to-my-ouya.php
b/www/push-to-my-ouya.php
index 12c9077b249109f4d0a3a5277d26eac862aa6348..ae0c44bca8816dd495952ab22569fefa9780fb64 100644
(file)
--- 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 <cweiske@cweiske.de>
* Maximal 30 games per IP to prevent flooding.
*
* @author Christian Weiske <cweiske@cweiske.de>
+ * @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/';
*/
$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'];
}
$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');
if ($game != $cleanGame) {
header('HTTP/1.0 400 Bad Request');
header('Content-type: text/plain');