aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web/src/components/System/Info/index.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/src/components/System/Info/index.jsx b/src/web/src/components/System/Info/index.jsx
index 8672b5df..016b683f 100644
--- a/src/web/src/components/System/Info/index.jsx
+++ b/src/web/src/components/System/Info/index.jsx
@@ -42,8 +42,9 @@ const Info = ({ state, theme }) => {
mediaQuery="(max-width: 686px)"
onClick={() =>
window.open(
- `http://www.slsknet.org/qtlogin.php?username=${state?.user?.username}`,
+ `http://www.slsknet.org/qtlogin.php?username=${encodeURIComponent(state?.user?.username ?? '')}`,
'_blank',
+ 'noopener,noreferrer',
)
}
>