X-Git-Url: https://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=users.sh;h=eaf4c272a721b87642f338f3d888155fea9fd47d;hp=c13703b418fc057adcdc936d26b515c55a3a74f7;hb=343a22a944f0300c5518e346ee1a85581741027c;hpb=f6fa7fb84db95642b28bcaa5722a5c48939720e7 diff --git a/users.sh b/users.sh index c13703b..eaf4c27 100755 --- a/users.sh +++ b/users.sh @@ -151,7 +151,7 @@ user_register(){ RELEASE "$user_db" debug "Sending Activation Link:" \ - "https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" + "https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" sendmail -t -f "$MAILFROM" <<-EOF From: ${MAILFROM} To: ${email} @@ -161,7 +161,7 @@ user_register(){ You can activate your account using this link: - https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") + https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") This registration link will expire after 24 hours. @@ -220,7 +220,7 @@ user_invite(){ >>"$user_db" RELEASE "$user_db" debug "Sending Invitation Link:" \ - "https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" + "https://${HTTP_HOST}${BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" sendmail -t -f "$MAILFROM" <<-EOF From: ${MAILFROM} To: ${email} @@ -232,7 +232,7 @@ user_invite(){ You can create your account using this link: - https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") + https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") This registration link will expire after 24 hours.