Skip to content

Commit 19ff613

Browse files
authored
Added urlencode so it accepts special characters (#786)
1 parent f65c675 commit 19ff613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ArchiSteamFarm/ArchiSteamFarm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test()
2424
}
2525

2626
$test = parent::appTest(
27-
$this->url("status?password=" . $this->config->password)
27+
$this->url("status?password=" . urlencode($this->config->password))
2828
);
2929
echo $test->status;
3030
}
@@ -36,7 +36,7 @@ public function livestats()
3636
}
3737
$status = "inactive";
3838
$res = parent::execute(
39-
$this->url("api/bot/asf?password=" . $this->config->password)
39+
$this->url("api/bot/asf?password=" . urlencode($this->config->password))
4040
);
4141
$details = json_decode($res->getBody());
4242

0 commit comments

Comments
 (0)