Do not allow VLAN tag zero
Do not allow VLAN tag zero

At the moment you can make a VLAN with tag 0. The input validation does not catch it because when $_POST['tag'] = "0" that evaluates to false by PHP.
Always make the checks on 'tag' value whenever the 'tag' key is set at all. If the (required) 'tag' key is not set, then that is already checked for by do_input_validation().
NOYB/pfsense,dennypage/pfsense,dennypage/pfsense,pfsense/pfsense,ch1c4um/pfsense,ptorsten/pfsense,phil-davis/pfsense,pfsense/pfsense,pfsense/pfsense,jxmx/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,brunostein/pfsense,ch1c4um/pfsense,NOYB/pfsense,jxmx/pfsense,brunostein/pfsense,jxmx/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,brunostein/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,NOYB/pfsense,ptorsten/pfsense,phil-davis/pfsense,dennypage/pfsense,ptorsten/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,NewEraCracker/pfsense