mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
monero-explorer-tools: explorer url - strip trailing slashes
This commit is contained in:
parent
b45b9625fb
commit
954eb92785
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class Monero_Explorer_Tools
|
||||||
public function __construct($testnet = false)
|
public function __construct($testnet = false)
|
||||||
{
|
{
|
||||||
$this->url = $testnet ? MONERO_GATEWAY_TESTNET_EXPLORER_URL : MONERO_GATEWAY_MAINNET_EXPLORER_URL;
|
$this->url = $testnet ? MONERO_GATEWAY_TESTNET_EXPLORER_URL : MONERO_GATEWAY_MAINNET_EXPLORER_URL;
|
||||||
|
$this->url = preg_replace("/\/+$/", "", $this->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function call_api($endpoint)
|
private function call_api($endpoint)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue