-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1298 from opentripplanner/trusted-companions-qbd
Additions to Trusted companions PR
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<html> | ||
<head> | ||
<title>Request Result</title> | ||
</head> | ||
<body> | ||
<p id="contents"> | ||
Your request is confirmed. | ||
<noscript>If an error occurred, a message is embedded in the URL for this page, but could not be parsed.</noscript> | ||
</p> | ||
</body> | ||
<script> | ||
var search = window.location.search.split("?")[1]; | ||
if (search) { | ||
var urlParams = search.split(";"); | ||
var errorParam = urlParams.find(p => p.startsWith("error=")); | ||
if (errorParam) { | ||
document.getElementById("contents").innerHTML = `An error occurred: ${decodeURIComponent(errorParam.split("=")[1])}`; | ||
Check failure Code scanning / CodeQL Client-side cross-site scripting High
Cross-site scripting vulnerability due to
user-provided value Error loading related location Loading |
||
} | ||
} | ||
</script> | ||
</html> |