You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/plugins-available/bind_plugin.inc.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,7 @@ function rr_delete($event_name,$data) {
236
236
global$app, $conf;
237
237
238
238
//* Get the data of the soa and call soa_update
239
-
$tmp = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = ".$data['old']['zone']);
239
+
$tmp = $app->db->queryOneRecord("SELECT * FROM dns_soa WHERE id = ".intval($data['old']['zone']));
240
240
$data["new"] = $tmp;
241
241
$data["old"] = $tmp;
242
242
$this->action = 'update';
@@ -254,7 +254,7 @@ function write_named_conf($data, $dns_config) {
254
254
$zones = array();
255
255
256
256
//* Check if the current zone that triggered this function has at least one NS record
257
-
$rec_num = $app->db->queryOneRecord("SELECT count(id) as ns FROM dns_rr WHERE type = 'NS' AND zone = ".$data['new']['id']." AND active = 'Y'");
257
+
$rec_num = $app->db->queryOneRecord("SELECT count(id) as ns FROM dns_rr WHERE type = 'NS' AND zone = ".intval($data['new']['id'])." AND active = 'Y'");
0 commit comments