Change uppercase regex

Check for any uppercase characters rather than revalidating input sans uppercase
This commit is contained in:
William Wernert committed 2021-07-16 15:39:09 -04:00
1 parent b552973e00
commit 0deb77468f
2 files changed
+10 -16

No files matched your search

+2 -2
View File
@@ -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