unchecked $_GET[‘post_type’] cause errors
-
plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_class_snap.php
tests like this l.975
$pbo['hideMe'] = $options['hideUnchecked'] && (empty($pbo['do']) || ($pbo['fltrsOn'] == '1' && !in_array($_GET['post_type'],$pbo['fltrs']['post_types'])) ); if (!$pbo['hideMe']) $jXj++;and l.979
<?php $pbo = $ntClInst->nt[$cboInx]; $pbo['jj']=$cboInx; $pbo['cbo']=$cbo; $pbo['hideMe'] = $options['hideUnchecked'] && (empty($pbo['do']) || ($pbo['fltrsOn'] == '1' && !in_array($_GET['post_type'],$pbo['fltrs']['post_types'])) );fail if $_GET[‘post_type’] is not set.
they should be checking isset($_GET[‘post_type’]) before attempting to access it
The topic ‘unchecked $_GET[‘post_type’] cause errors’ is closed to new replies.