From e06482cad738515f33b2bc376e9bc736c457feb6 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 29 Mar 2020 14:11:36 +0100 Subject: [PATCH] Use URLEncodeComponent. --- src/session/index.tsx | 4 ++-- src/showplanner/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/session/index.tsx b/src/session/index.tsx index 1529cef..f11457a 100644 --- a/src/session/index.tsx +++ b/src/session/index.tsx @@ -37,11 +37,11 @@ const SessionHandler: React.FC<{ }> = function () { timeslotLoadError } = useSelector((state: RootState) => state.session); - var redirect_url = encodeURI(window.location.toString()); + var redirect_url = encodeURIComponent(window.location.toString()); if (currentUser === null) { return (
-

Getting User Data...

+

Getting user data...

{(userLoading) && ( Your data is loading, please wait just a second... )} diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index ddb095b..a5a0e79 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -172,7 +172,7 @@ function NavBar() { const dispatch = useDispatch(); const sessionState = useSelector((state: RootState) => state.session); const broadcastState = useSelector((state: RootState) => state.broadcast); - const redirect_url = encodeURI(window.location.toString()); + const redirect_url = encodeURIComponent(window.location.toString()); return (