From 17478e1cb07455167b65fbb92fcbc22e71c68c26 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sat, 29 Aug 2015 18:58:06 +0300 Subject: [PATCH] =?UTF-8?q?FIX=20-=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/controllers/JsonController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ground/controllers/JsonController.php b/ground/controllers/JsonController.php index fbb15ce..f0f66a5 100644 --- a/ground/controllers/JsonController.php +++ b/ground/controllers/JsonController.php @@ -254,6 +254,10 @@ class JsonController extends Controller static function actionSaveRoute() { + if (!(isset($_POST['name']) && $_POST['name'] && isset($_POST['points']) && $_POST['points'])) { + App::error404('Неправильное значение!'); + } + $request = array( 'author' => App::$user->id, 'date' => time(),