diff --git a/.gitignore b/.gitignore
index eb71606..32791f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
# +-------------------------------------------------------------------------+
locales/po/*.mo
+.omc/
diff --git a/Net/DNS2/Cache.php b/Net/DNS2/Cache.php
index dadf1cf..19ee6b1 100644
--- a/Net/DNS2/Cache.php
+++ b/Net/DNS2/Cache.php
@@ -67,7 +67,7 @@ public function get($key) {
if ($this->cache_serializer == 'json') {
return json_decode($this->cache_data[$key]['object']);
} else {
- return unserialize($this->cache_data[$key]['object']);
+ return unserialize($this->cache_data[$key]['object'], ['allowed_classes' => false]);
}
} else {
return false;
diff --git a/Net/DNS2/Cache/File.php b/Net/DNS2/Cache/File.php
index 5122451..20f8b33 100644
--- a/Net/DNS2/Cache/File.php
+++ b/Net/DNS2/Cache/File.php
@@ -67,7 +67,7 @@ public function open($cache_file, $size, $serializer) {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
- $decoded = unserialize($data);
+ $decoded = unserialize($data, ['allowed_classes' => false]);
}
if (is_array($decoded) == true) {
@@ -145,7 +145,7 @@ public function __destruct() {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
- $decoded = unserialize($data);
+ $decoded = unserialize($data, ['allowed_classes' => false]);
}
if (is_array($decoded) == true) {
diff --git a/Net/DNS2/Cache/Shm.php b/Net/DNS2/Cache/Shm.php
index 690719c..d1571ae 100644
--- a/Net/DNS2/Cache/Shm.php
+++ b/Net/DNS2/Cache/Shm.php
@@ -104,7 +104,7 @@ public function open($cache_file, $size, $serializer) {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
- $decoded = unserialize($data);
+ $decoded = unserialize($data, ['allowed_classes' => false]);
}
if (is_array($decoded) == true) {
@@ -195,7 +195,7 @@ public function __destruct() {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
- $decoded = unserialize($data);
+ $decoded = unserialize($data, ['allowed_classes' => false]);
}
if (is_array($decoded) == true) {
diff --git a/lib/mactrack_functions.php b/lib/mactrack_functions.php
index d9db56d..a70dfca 100644
--- a/lib/mactrack_functions.php
+++ b/lib/mactrack_functions.php
@@ -3713,16 +3713,16 @@ function exportRows() {
}
$(function() {
- $('#mactrack').submit(function(event) {
+ $('#mactrack').on('submit', function(event) {
event.preventDefault();
applyFilter();
});
- $('#clear').click(function() {
+ $('#clear').on('click', function() {
clearFilter();
});
- $('#export').click(function() {
+ $('#export').on('click', function() {
exportRows();
});
diff --git a/mactrack_device_types.php b/mactrack_device_types.php
index e1564da..2b8f916 100644
--- a/mactrack_device_types.php
+++ b/mactrack_device_types.php
@@ -1180,24 +1180,24 @@ function scanDeviceType() {
}
$(function() {
- $('#mactrack').submit(function(event) {
+ $('#mactrack').on('submit', function(event) {
event.preventDefault();
applyFilter();
});
- $('#clear').click(function() {
+ $('#clear').on('click', function() {
clearFilter();
});
- $('#export').click(function() {
+ $('#export').on('click', function() {
exportRows();
});
- $('#import').click(function() {
+ $('#import').on('click', function() {
importRows();
});
- $('#scan').click(function() {
+ $('#scan').on('click', function() {
scanDeviceType();
});
});
diff --git a/mactrack_devices.php b/mactrack_devices.php
index abf3881..5c895ad 100644
--- a/mactrack_devices.php
+++ b/mactrack_devices.php
@@ -1315,20 +1315,20 @@ function importRows() {
}
$(function() {
- $('#mactrack').submit(function(event) {
+ $('#mactrack').on('submit', function(event) {
event.preventDefault();
applyFilter();
});
- $('#clear').click(function() {
+ $('#clear').on('click', function() {
clearFilter();
});
- $('#export').click(function() {
+ $('#export').on('click', function() {
exportRows();
});
- $('#import').click(function() {
+ $('#import').on('click', function() {
importRows();
});
});
diff --git a/mactrack_macauth.php b/mactrack_macauth.php
index e36a66a..f3d774d 100644
--- a/mactrack_macauth.php
+++ b/mactrack_macauth.php
@@ -407,7 +407,7 @@ function mactrack_maca_filter() {
- '>
+ '>