Fixed max POST size

This commit is contained in:
Jean TOULZA 2018-07-19 17:47:14 +02:00
parent 863d949b0f
commit 8f88edd3dc

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);