mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Add Eldad's Suggestion
This commit is contained in:
1 parent
89cc417e3f
commit
6184c4c93b
1 file changed
+1
-3
@@ -40,9 +40,7 @@ App::init(function ($utopia, $request, $response, $project, $user, $register, $e
|
||||
$abuseKeyLabel = $route->getLabel('abuse-key', 'url:{url},ip:{ip}');
|
||||
$timeLimitArray = [];
|
||||
|
||||
if (!is_array($abuseKeyLabel)) {
|
||||
$abuseKeyLabel = [$abuseKeyLabel];
|
||||
}
|
||||
$abuseKeyLabel = (!is_array($abuseKeyLabel)) ? [$abuseKeyLabel] : $abuseKeyLabel;
|
||||
|
||||
foreach ($abuseKeyLabel as $abuseKey) {
|
||||
$timeLimit = new TimeLimit($abuseKey, $route->getLabel('abuse-limit', 0), $route->getLabel('abuse-time', 3600), $db);
|
||||
|
||||
Reference in new issue
Block a user