diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-05-05 02:14:16 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-05-05 02:14:16 -0500 |
commit | 8fdddd51433ede9f8ce5846e41f16a03d8dddad0 (patch) | |
tree | 985319ee6ceb1d9967240043b9e9cb1dc70feb89 /src/etc | |
parent | 8f534d5dcce1c6951cb4a28c188a6a3719154855 (diff) | |
download | pfsense-8fdddd51433ede9f8ce5846e41f16a03d8dddad0.zip pfsense-8fdddd51433ede9f8ce5846e41f16a03d8dddad0.tar.gz |
This was correct already. Revert "Allow uppercase letters in is_unqualified_hostname as well."
This reverts commit 94ccdcb8a4d6f7789fd39c4b6e9876bb689de9a4.
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 c2ee367..5de5bd1 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-zA-Z0-9_]|[a-zA-Z0-9_][a-zA-Z0-9_\-]*[a-zA-Z0-9_])$/i', $hostname)) { + if (preg_match('/^(?:[a-z0-9_]|[a-z0-9_][a-z0-9_\-]*[a-z0-9_])$/i', $hostname)) { return true; } else { return false; |