From df2dfc938da82258c2564da67af0ba1417227146 Mon Sep 17 00:00:00 2001 From: Sebastian Divander <81374028+Sebbedi@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:38:30 +0100 Subject: [PATCH] Wrapped username and password data in encodeURIComponent (#224) --- back/pyproject.toml | 2 +- deploy/kubernetes/tmeit-se/postgres/set_image_tag.json | 2 +- deploy/kubernetes/tmeit-se/run-migrations/set_image_tag.json | 2 +- deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json | 2 +- deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json | 2 +- front/package.json | 2 +- front/src/app/components/LoginModal.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/back/pyproject.toml b/back/pyproject.toml index 4e769b1..72bcafd 100644 --- a/back/pyproject.toml +++ b/back/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tmeit_backend" -version = "1.3.0" +version = "1.3.1" description = "Python backend for the TMEIT website" authors = ["TraditionsMEsterIT"] license = "AGPL-3.0" diff --git a/deploy/kubernetes/tmeit-se/postgres/set_image_tag.json b/deploy/kubernetes/tmeit-se/postgres/set_image_tag.json index a3a18c9..d93a903 100644 --- a/deploy/kubernetes/tmeit-se/postgres/set_image_tag.json +++ b/deploy/kubernetes/tmeit-se/postgres/set_image_tag.json @@ -2,6 +2,6 @@ { "op": "replace", "path": "/spec/jobTemplate/spec/template/spec/containers/0/image", - "value": "ghcr.io/tmeit/db-backup-agent:1.3.0" + "value": "ghcr.io/tmeit/db-backup-agent:1.3.1" } ] \ No newline at end of file diff --git a/deploy/kubernetes/tmeit-se/run-migrations/set_image_tag.json b/deploy/kubernetes/tmeit-se/run-migrations/set_image_tag.json index 1aa34bb..02a5e37 100644 --- a/deploy/kubernetes/tmeit-se/run-migrations/set_image_tag.json +++ b/deploy/kubernetes/tmeit-se/run-migrations/set_image_tag.json @@ -2,6 +2,6 @@ { "op": "replace", "path": "/spec/template/spec/containers/0/image", - "value": "ghcr.io/tmeit/tmeit-run-migrations:1.3.0" + "value": "ghcr.io/tmeit/tmeit-run-migrations:1.3.1" } ] \ No newline at end of file diff --git a/deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json b/deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json index 241524f..b77f76d 100644 --- a/deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json +++ b/deploy/kubernetes/tmeit-se/tmeit-app/set_image_tag.json @@ -2,6 +2,6 @@ { "op": "replace", "path": "/spec/template/spec/containers/0/image", - "value": "ghcr.io/tmeit/tmeit-app:1.3.0" + "value": "ghcr.io/tmeit/tmeit-app:1.3.1" } ] \ No newline at end of file diff --git a/deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json b/deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json index 2cfdc53..3bca535 100644 --- a/deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json +++ b/deploy/kubernetes/tmeit-se/tmeit-worker/set_image_tag.json @@ -2,6 +2,6 @@ { "op": "replace", "path": "/spec/template/spec/containers/0/image", - "value": "ghcr.io/tmeit/tmeit-worker:1.3.0" + "value": "ghcr.io/tmeit/tmeit-worker:1.3.1" } ] \ No newline at end of file diff --git a/front/package.json b/front/package.json index 9a788b1..c612786 100644 --- a/front/package.json +++ b/front/package.json @@ -3,7 +3,7 @@ "sideEffects": [ "*.css" ], - "version": "1.3.0", + "version": "1.3.1", "description": "Front-end for the TMEIT website.", "main": "index.js", "scripts": { diff --git a/front/src/app/components/LoginModal.js b/front/src/app/components/LoginModal.js index 9211f0b..ec94c41 100644 --- a/front/src/app/components/LoginModal.js +++ b/front/src/app/components/LoginModal.js @@ -129,7 +129,7 @@ function LoginModal({className, loggedIn, setLoggedIn, setLoginModalOpen}) { token.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); token.responseType = "json"; const data = - "username=" + e.target["0"].value + "&password=" + e.target["1"].value; + "username=" + encodeURIComponent(e.target["0"].value) + "&password=" + encodeURIComponent(e.target["1"].value); token.send(data); token.onload = function () {