Skip to content

Commit

Permalink
Fixed POST requester page
Browse files Browse the repository at this point in the history
Fixed an issue where Discord would not recognize URLs with % encoded within them.
  • Loading branch information
x753 committed Sep 25, 2023
1 parent 63c451e commit 133a344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poster.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

<div style="font-size:26px;"><b>Select your Identity.json file, found here:</b></div>

<div id="fileLocation" style="font-size:22px;">FILELOCATIONPLACEHOLDER</div>
<div id="fileLocation" style="font-size:22px;">%USERPROFILE%</div>

<div class="dropbox" ondragenter="dragEnterHandler(event);" ondragover="dragOverHandler(event);" ondragleave="dragLeaveHandler(event);" ondrop="dropHandler(event);">

Expand All @@ -145,7 +145,7 @@
var urlData = url.substring(n + 1).split('&');

document.getElementById("titleHeader").textContent = decodeURIComponent(urlData[0]);
document.getElementById("fileLocation").textContent = decodeURIComponent(urlData[1]);
document.getElementById("fileLocation").textContent = decodeURIComponent(urlData[1]).replace('USERPROFILE','%USERPROFILE%');
document.getElementById("poster").textContent = decodeURIComponent(urlData[2]);
var apiEndpoint = decodeURIComponent(urlData[3]);
var requestData = decodeURIComponent(urlData[4]);
Expand Down

0 comments on commit 133a344

Please sign in to comment.