From 1dbe646724d01d91d76b6a1236d50c51e60e912c Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 13 May 2019 16:39:16 -0400 Subject: [PATCH] Filter generated bind configuration by current domain Fixes #339 --- bureau/class/m_bind.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_bind.php b/bureau/class/m_bind.php index 7c903a47..6ffcb9e1 100644 --- a/bureau/class/m_bind.php +++ b/bureau/class/m_bind.php @@ -226,7 +226,8 @@ class m_bind { sd.type=dt.name AND sd.enable IN ('ENABLE', 'ENABLED') AND sd.web_action NOT IN ('DELETE') - ORDER BY ENTRY ;"); + AND sd.domaine = ? + ORDER BY ENTRY ;", array($domain)); $t=""; while ($db->next_record()) { $t.= $db->f('ENTRY')."\n";