Fixed bug, that allows user by editing UUID to change URL

This commit is contained in:
2023-03-02 12:45:16 +01:00
parent b71c4b40ae
commit 614b80b1ac

View File

@@ -255,7 +255,7 @@ async function fetchUUIDCheck(givenUUID , strategy){
switch(strategy){
case "new":{
await fetch(url + givenUUID, { method : "GET" })
await fetch(url + "{givenUUID}/", { method : "GET" })
.then ( response => response.text() )
.then ( data => {
newUUID = data;
@@ -264,7 +264,7 @@ async function fetchUUIDCheck(givenUUID , strategy){
break;
}
case "restore":{
await fetch(url + givenUUID + "/" + clientUUID , { method: "GET" })
await fetch(url + "{givenUUID}" + "/" + "{clientUUID}/" , { method: "GET" })
.then (response => response.text() )
.then (data => {
newUUID = data;