Address 301 redirect issue and Safari regex issue. (#143)

* Address 301 redirect issue and Safari regex issue.

* Restored login redirect

as this doesn't not fix the sso redirect #143.

Co-authored-by: Ajay Bura <32841439+ajbura@users.noreply.github.com>
This commit is contained in:
James Julich 2021-10-19 07:39:30 -05:00 committed by GitHub
parent fa10a67811
commit 76c3660cb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ function SSOButtons({ homeserver }) {
useEffect(() => { useEffect(() => {
// If the homeserver passed in is not a fully-qualified domain name, do not update. // If the homeserver passed in is not a fully-qualified domain name, do not update.
if (!homeserver.match('(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-).)+[a-zA-Z]{2,63}$)')) { if (!homeserver.match('^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+$')) {
return; return;
} }