Fixed max POST size

This commit is contained in:
Jean TOULZA 2018-07-19 17:47:14 +02:00
parent 863d949b0f
commit 8f88edd3dc
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
$data = file_get_contents('php://input');
if (!$data) {
edie("no val given");
} elseif (count($data) > 500) {
} elseif (strlen($data) > 500) {
edie("data too long");
} else {
set_redis($key, $data);