mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-19 21:19:07 +00:00
Hotfix for /register-kill/register-kill
If someone typed https://apiurl.com/ it would send the request to https://apiurl.com/register-kill/register-kill I've had to fix too many peoples clients by removing a backslash. Stap it!
This commit is contained in:
parent
e43286bde1
commit
3022ad03ed
1 changed files with 14 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
$TrackRver = "2.06"
|
$TrackRver = "2.07"
|
||||||
|
|
||||||
# Path to the config file
|
# Path to the config file
|
||||||
$appName = "AutoTrackR2"
|
$appName = "AutoTrackR2"
|
||||||
|
@ -57,16 +57,12 @@ If (Test-Path $logFilePath) {
|
||||||
} else {
|
} else {
|
||||||
Write-Output "Logfile not found."
|
Write-Output "Logfile not found."
|
||||||
}
|
}
|
||||||
|
|
||||||
If ($null -ne $apiUrl){
|
If ($null -ne $apiUrl){
|
||||||
if ($apiUrl -notlike "*/register-kill") {
|
if ($apiUrl -notlike "*/register-kill") {
|
||||||
if ($apiUrl -like "*/"){
|
$apiUrl = $apiUrl.TrimEnd("/") + "/register-kill"
|
||||||
$apiUrl = $apiUrl + "register-kill"
|
|
||||||
}
|
}
|
||||||
if ($apiUrl -notlike "*/"){
|
Write-output "PlayerName=$apiURL"
|
||||||
$apiUrl = $apiUrl + "/register-kill"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Write-output "PlayerName=$apiURL"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ship Manufacturers
|
# Ship Manufacturers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue