Fixed bug, that allows user by editing UUID to change URL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user