Skip to content

Commit

Permalink
Added urlencode so it accepts special characters (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBuffon authored Oct 5, 2024
1 parent f65c675 commit 19ff613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArchiSteamFarm/ArchiSteamFarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test()
}

$test = parent::appTest(
$this->url("status?password=" . $this->config->password)
$this->url("status?password=" . urlencode($this->config->password))
);
echo $test->status;
}
Expand All @@ -36,7 +36,7 @@ public function livestats()
}
$status = "inactive";
$res = parent::execute(
$this->url("api/bot/asf?password=" . $this->config->password)
$this->url("api/bot/asf?password=" . urlencode($this->config->password))
);
$details = json_decode($res->getBody());

Expand Down

0 comments on commit 19ff613

Please sign in to comment.