diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-05 01:03:17 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-05 01:03:34 -0500 |
commit | 94ccdcb8a4d6f7789fd39c4b6e9876bb689de9a4 (patch) | |
tree | 2cf8614ad58557136e69b60f83388f9654d7dbcd /src/etc | |
parent | a576ae5bae18c50d8ed37b4325397d586a4a304b (diff) | |
download | pfsense-94ccdcb8a4d6f7789fd39c4b6e9876bb689de9a4.zip pfsense-94ccdcb8a4d6f7789fd39c4b6e9876bb689de9a4.tar.gz |
Allow uppercase letters in is_unqualified_hostname as well.
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/util.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc index 5de5bd1..c2ee367 100644 --- a/src/etc/inc/util.inc +++ b/src/etc/inc/util.inc @@ -1009,7 +1009,7 @@ function is_unqualified_hostname($hostname) { return false; } - if (preg_match('/^(?:[a-z0-9_]|[a-z0-9_][a-z0-9_\-]*[a-z0-9_])$/i', $hostname)) { + if (preg_match('/^(?:[a-zA-Z0-9_]|[a-zA-Z0-9_][a-zA-Z0-9_\-]*[a-zA-Z0-9_])$/i', $hostname)) { return true; } else { return false; |