From 53b5e6461300a6ac153cdd3c09f2db6a5749a069 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 2 Jan 2018 01:25:09 +0000 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 20c01d5a..b00e788a 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -560,15 +560,9 @@ class DbQ extends nb { return [array_values($title),$nav]; } - public function method_post_accept() { + public function method_post_accept_decode() { if ( empty($_SERVER['REQUEST_METHOD']) or $_SERVER['REQUEST_METHOD'] != 'POST' ) return; - #bye($_POST); - $raw = null; -# NB 11.12.17 $keys = array_keys($_POST); -# NB 11.12.17 if (count($keys) == 1 and empty($_POST[$keys[0]])) { -# NB 11.12.17 $raw = $keys[0]; -# NB 11.12.17 bye($raw); -# NB 11.12.17 } + $raw = null; foreach (['json','yaml'] as $type) { @@ -590,7 +584,8 @@ class DbQ extends nb { } private function uri_init() { - $this->method_post_accept(); + $this->method_post_accept_decode(); + # # Parse path, respect params order # -- 2.47.3