From bcd5bd397767048465b779dea95276382c7d3e94 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 29 Aug 2024 00:41:25 +0200 Subject: [PATCH] www/dbq/dbq.php --- www/dbq/dbq.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 1e2eaf5e..934d5be5 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -1437,10 +1437,6 @@ EOF; } elseif ($action == 'status') { $this->page($this->table->status()+$this->table->status(['fields'])); - } elseif ($action == 'vi') { - $this->deniedUnless($this->perm >= self::READ); - $this->page($this,'vi'); - } elseif ($action == 'add') { $this->deniedUnless($this->perm >= self::WRITE); $this->page($this,'add'); @@ -1469,10 +1465,18 @@ EOF; $this->redirect_if_no_referer($this->table->base.'/'); $this->page($info); - } elseif (preg_match('/^fields=(.*)\s*$/',$action,$m)) { $this->page_table_ls($m[1]); + } elseif ($action == 'vi' + # NB 29.08.24 or $action!="" + ) { + if ($action != 'vi') $this->params['args'] = $action; + #bye($this->params); + $this->deniedUnless($this->perm >= self::READ); + $this->page($this,'vi'); + + } else { $this->notImplemented('Unknown table action'." `$action`"); -- 2.47.3