Escape parameters better when managing tables. Fix test to allow deleting subnet entries as well as IPs.
Escape parameters better when managing tables. Fix test to allow deleting subnet entries as well as IPs.

Conflicts:

	usr/local/www/diag_tables.php

phil-davis/pfsense,pfsense/pfsense,ch1c4um/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,dennypage/pfsense,ch1c4um/pfsense,ptorsten/pfsense,brunostein/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,NOYB/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,ch1c4um/pfsense,brunostein/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,phil-davis/pfsense,jxmx/pfsense,ptorsten/pfsense,dennypage/pfsense,dennypage/pfsense,NewEraCracker/pfsense,jxmx/pfsense,dennypage/pfsense,pfsense/pfsense,ch1c4um/pfsense,pfsense/pfsense,brunostein/pfsense,ptorsten/pfsense,NOYB/pfsense,pfsense/pfsense,NOYB/pfsense