Skip to content

Commit

Permalink
Patch: Enclose URLs on serverrcon call in quotes.
Browse files Browse the repository at this point in the history
Change config.get to apiString in demo upload.
  • Loading branch information
PhlexPlexico committed Jun 24, 2023
1 parent c92bfb7 commit 7686954
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/utility/serverrcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,33 +205,33 @@ class ServerRcon {
if (parseFloat(get5Version) >= 0.14) {
let apiString = config.get("server.apiURL");
await this.execute(
"get5_remote_log_url ".concat(
'get5_remote_log_url "'.concat(
apiString.endsWith("/")
? apiString.concat("v2")
: apiString.concat("/v2")
)
) + '"'
);
await this.execute("get5_remote_log_header_key Authorization");
await this.execute("get5_remote_log_header_value " + get5APIKeyString);

await this.execute(
"get5_remote_backup_url ".concat(
'get5_remote_backup_url "'.concat(
apiString.endsWith("/")
? apiString.concat("v2/backup")
: apiString.concat("/v2/backup")
)
) + '"'
);
await this.execute("get5_remote_backup_header_key Authorization");
await this.execute(
"get5_remote_backup_header_value " + get5APIKeyString
);

await this.execute(
"get5_demo_upload_url ".concat(
config.get("server.apiURL").endsWith("/")
'get5_demo_upload_url "'.concat(
apiString.endsWith("/")
? apiString.concat("v2/demo")
: apiString.concat("/v2/demo")
)
) + '"'
);
await this.execute("get5_demo_upload_header_key Authorization");
await this.execute("get5_demo_upload_header_value " + get5APIKeyString);
Expand Down

0 comments on commit 7686954

Please sign in to comment.