Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Net/DNS2/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'], array('allowed_classes' => false));
}
Comment thread
TheWitness marked this conversation as resolved.
} else {
return false;
Expand Down
4 changes: 2 additions & 2 deletions Net/DNS2/Cache/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, array('allowed_classes' => false));
}

if (is_array($decoded) == true) {
Expand Down Expand Up @@ -145,7 +145,7 @@ public function __destruct() {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
$decoded = unserialize($data);
$decoded = unserialize($data, array('allowed_classes' => false));
}

if (is_array($decoded) == true) {
Expand Down
4 changes: 2 additions & 2 deletions Net/DNS2/Cache/Shm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, array('allowed_classes' => false));
}

if (is_array($decoded) == true) {
Expand Down Expand Up @@ -195,7 +195,7 @@ public function __destruct() {
if ($this->cache_serializer == 'json') {
$decoded = json_decode($data, true);
} else {
$decoded = unserialize($data);
$decoded = unserialize($data, array('allowed_classes' => false));
}

if (is_array($decoded) == true) {
Expand Down
2 changes: 1 addition & 1 deletion lib/mactrack_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3582,7 +3582,7 @@ function mactrack_site_filter($page = 'mactrack_sites.php') {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Sites', 'mactrack'); ?>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_device_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ function mactrack_device_type_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Device Types', 'mactrack'); ?>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ function mactrack_device_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Site', 'mactrack'); ?>
Expand Down
4 changes: 2 additions & 2 deletions mactrack_macauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ function mactrack_maca_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('MAC\'s', 'mactrack'); ?>
Expand Down Expand Up @@ -413,7 +413,7 @@ function mactrack_maca_filter() {
</td>
</tr>
</table>
<input type='hidden' id='page' value='<?php print get_request_var('page'); ?>'>
<input type='hidden' id='page' value='<?php print html_escape_request_var('page'); ?>'>
</form>
<script type='text/javascript'>

Expand Down
4 changes: 2 additions & 2 deletions mactrack_macwatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function mactrack_macw_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Watches', 'mactrack'); ?>
Expand Down Expand Up @@ -421,7 +421,7 @@ function mactrack_macw_filter() {
</td>
</tr>
</table>
<input type='hidden' id='page' value='<?php print get_request_var('page'); ?>'>
<input type='hidden' id='page' value='<?php print html_escape_request_var('page'); ?>'>
</form>
<script type='text/javascript'>

Expand Down
4 changes: 2 additions & 2 deletions mactrack_snmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ function snmp_options_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Options', 'mactrack'); ?>
Expand Down Expand Up @@ -635,7 +635,7 @@ function snmp_options_filter() {
</td>
</tr>
</table>
<input type='hidden' name='page' value='<?php print get_request_var('page'); ?>'>
<input type='hidden' name='page' value='<?php print html_escape_request_var('page'); ?>'>
</td>
</form>
<script type='text/javascript'>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_vendormacs.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function mactrack_vmac_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('MAC\'s', 'mactrack'); ?>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_view_arp.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function mactrack_ip_address_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Site', 'mactrack'); ?>
Expand Down
4 changes: 2 additions & 2 deletions mactrack_view_devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ function mactrack_device_filter2() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Site', 'mactrack'); ?>
Expand Down Expand Up @@ -554,7 +554,7 @@ function mactrack_device_filter2() {
</td>
</tr>
</table>
<input type='hidden' id='page' value='<?php print get_request_var('page'); ?>'>
<input type='hidden' id='page' value='<?php print html_escape_request_var('page'); ?>'>
<input type='hidden' id='report' value='devices'>
</form>
<script type='text/javascript'>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_view_interfaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ function mactrack_filter_table() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<input type='checkbox' id='totals' onChange='applyFilter()' <?php print(get_request_var('totals') == 'true' ? 'checked' : ''); ?>>
Expand Down
2 changes: 1 addition & 1 deletion mactrack_view_ips.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function mactrack_ips_filter() {
</td>
</tr>
</table>
<input type='hidden' id='page' value='<?php print get_request_var('page'); ?>'>
<input type='hidden' id='page' value='<?php print html_escape_request_var('page'); ?>'>
<input type='hidden' id='report' value='ips'>
</form>
<script type='text/javascript'>
Expand Down
4 changes: 2 additions & 2 deletions mactrack_view_macs.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function form_actions() {

// if we are to save this form, instead of display it
if (isset_request_var('selected_items')) {
$selected_items = unserialize(get_nfilter_request_var('selected_items'));
$selected_items = unserialize(get_nfilter_request_var('selected_items', array('allowed_classes' => false)));
Comment thread
TheWitness marked this conversation as resolved.
Outdated

foreach ($selected_items as $mac=>$ip) {
if (!filter_var($mac, FILTER_VALIDATE_MAC)) {
Expand Down Expand Up @@ -1106,7 +1106,7 @@ function mactrack_mac_filter() {
<?php print __('Search', 'mactrack'); ?>
</td>
<td>
<input type='text' id='filter' size='25' value='<?php print get_request_var('filter'); ?>'>
<input type='text' id='filter' size='25' value='<?php print html_escape_request_var('filter'); ?>'>
</td>
<td>
<?php print __('Site', 'mactrack'); ?>
Expand Down
Loading