Main repository for pfSense
Go to file
stilez 4caa9574b4 Tighten is_numeric()
Improvements:

1) avoids 'expensive' preg_match() and is a more exact test
2) fixes logic whereby an empty string or anything converted to an empty string, is deemed a valid 'numeric' value

(If an empty string can validate as numeric, it's possible that in some cases a number is expected and missing in a string, but not detected, causing malformed rules or subnet bitcounts, and unexpected issues or vulnerabilities)

 -- also moved code to a more logical place in the .inc while doing this, not mixed in between IP handling functions
2014-02-20 01:53:01 +00:00
boot
cf/conf
conf.default Remove deprecated sysctls. vfs.forcesync needs to be seen if the patch needs to be put in place again! 2013-12-14 21:39:05 +00:00
etc Tighten is_numeric() 2014-02-20 01:53:01 +00:00
root Add nonewline to end of file to avoid issues when new options are added 2013-04-29 11:05:22 -03:00
sbin Whitespace fixes 2013-08-01 11:14:08 +00:00
tmp Add a mechanism by which the serial port can be forced on always regardless of the config setting. (useful for nano+vga setups) 2014-02-14 09:58:17 -05:00
usr Merge pull request #938 from nagyrobi/patch-12 2014-02-19 17:00:49 +01:00
.gitattributes include gettext locales in line encoding list 2014-01-13 22:05:10 -05:00
.gitignore Ignore vim swap files 2013-03-08 14:41:01 -03:00