Fixed max POST size
This commit is contained in:
parent
863d949b0f
commit
8f88edd3dc
@ -49,7 +49,7 @@
|
|||||||
$data = file_get_contents('php://input');
|
$data = file_get_contents('php://input');
|
||||||
if (!$data) {
|
if (!$data) {
|
||||||
edie("no val given");
|
edie("no val given");
|
||||||
} elseif (count($data) > 500) {
|
} elseif (strlen($data) > 500) {
|
||||||
edie("data too long");
|
edie("data too long");
|
||||||
} else {
|
} else {
|
||||||
set_redis($key, $data);
|
set_redis($key, $data);
|
||||||
|
Loading…
Reference in New Issue
Block a user