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 Krishan
parent 825db633a0
commit 012e933e43

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;
} }