From 92326ae590c90a948cc1585dffeb696f206e3d8a Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 12 Dec 2016 18:07:23 +0100 Subject: [PATCH] dbq nginx --- www/dbq/dbq.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 3b136d43..205af071 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -293,12 +293,11 @@ table.rows th, table.rows td { border-color: '.$this->colors['body-border'].'; } public function uri_params() { $values = []; - if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',count($GLOBALS['argv'])>0 ? array_slice($GLOBALS['argv'],1) : []); + if (empty($_SERVER['REQUEST_URI'])) $_SERVER['REQUEST_URI'] = join('/',( count($GLOBALS['argv'])>0 ) ? array_slice($GLOBALS['argv'],1) : []); list ($path,$args) = explode('?',$_SERVER['REQUEST_URI']); $this->uri = $path; $this->uri_params = $args; - #$path = preg_replace('/\?.*$/','',$_SERVER['REQUEST_URI']); if (preg_match('/\.(\w+)$/',$path,$m)) { $values[] = $m[1]; -- 2.47.3