From 954eb92785cef79aa74e4c63614ca17ba3729cd1 Mon Sep 17 00:00:00 2001 From: xiphon Date: Fri, 19 Jun 2020 17:21:54 +0000 Subject: [PATCH] monero-explorer-tools: explorer url - strip trailing slashes --- include/class-monero-explorer-tools.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class-monero-explorer-tools.php b/include/class-monero-explorer-tools.php index e43b00f..8f8d2c1 100644 --- a/include/class-monero-explorer-tools.php +++ b/include/class-monero-explorer-tools.php @@ -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)