1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

FTL allows non-numieric port notation - we need to strip this

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-12-16 13:06:25 +01:00
parent 7dc542f3c2
commit b2a5564685
No known key found for this signature in database

View File

@ -2498,8 +2498,8 @@ main() {
fi fi
if [[ "${useUpdateVars}" == false ]]; then if [[ "${useUpdateVars}" == false ]]; then
# Get the Web interface port, return only the first port # Get the Web interface port, return only the first port and strip all non-numeric characters
WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1) WEBPORT=$(getFTLConfigValue webserver.port|cut -d, -f1 | tr -cd '0-9')
# Display the completion dialog # Display the completion dialog
displayFinalMessage "${pw}" displayFinalMessage "${pw}"