]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 01:25:09 +0000 (01:25 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 01:25:09 +0000 (01:25 +0000)
www/dbq/dbq.php

index 20c01d5a0f12e5cef6a04ed21e4c57ae473c9237..b00e788af80389fc7710e6797a2ce8b9d1e9610f 100644 (file)
@@ -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
                #