mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Change uppercase regex
Check for any uppercase characters rather than revalidating input sans uppercase
This commit is contained in:
@@ -425,7 +425,7 @@ collect_homenet_snsr() {
|
||||
collect_hostname() {
|
||||
collect_hostname_validate
|
||||
|
||||
while ! hostname_lowercase "$HOSTNAME"; do
|
||||
while has_uppercase "$HOSTNAME"; do
|
||||
if ! (whiptail_uppercase_warning); then
|
||||
collect_hostname_validate
|
||||
else
|
||||
@@ -664,7 +664,7 @@ collect_proxy_details() {
|
||||
collect_redirect_host() {
|
||||
collect_redirect_host_validate
|
||||
|
||||
while ! hostname_lowercase "$REDIRECTHOST" && ! fqdn_lowercase "$REDIRECTHOST"; do
|
||||
while has_uppercase "$REDIRECTHOST"; do
|
||||
local text
|
||||
! valid_hostname "$REDIRECTHOST" && text="domain name" || text="hostname"
|
||||
if ! (whiptail_uppercase_warning "$text"); then
|
||||
|
||||
Reference in New Issue
Block a user