Filter generated bind configuration by current domain

Fixes #339
This commit is contained in:
Kienan Stewart 2019-05-13 16:39:16 -04:00
parent 1ca9dcf406
commit 1dbe646724
No known key found for this signature in database
GPG Key ID: 075A846E78FE47EA
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ class m_bind {
sd.type=dt.name sd.type=dt.name
AND sd.enable IN ('ENABLE', 'ENABLED') AND sd.enable IN ('ENABLE', 'ENABLED')
AND sd.web_action NOT IN ('DELETE') AND sd.web_action NOT IN ('DELETE')
ORDER BY ENTRY ;"); AND sd.domaine = ?
ORDER BY ENTRY ;", array($domain));
$t=""; $t="";
while ($db->next_record()) { while ($db->next_record()) {
$t.= $db->f('ENTRY')."\n"; $t.= $db->f('ENTRY')."\n";