monero-explorer-tools: explorer url - strip trailing slashes

This commit is contained in:
xiphon 2020-06-19 17:21:54 +00:00 committed by SerHack
parent b45b9625fb
commit 954eb92785

View file

@ -19,6 +19,7 @@ class Monero_Explorer_Tools
public function __construct($testnet = false)
{
$this->url = $testnet ? MONERO_GATEWAY_TESTNET_EXPLORER_URL : MONERO_GATEWAY_MAINNET_EXPLORER_URL;
$this->url = preg_replace("/\/+$/", "", $this->url);
}
private function call_api($endpoint)