From 81fce72efe15c5408a576fdff7bc3274fbfef905 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 18 Aug 2021 19:11:23 +0200 Subject: [PATCH] nitter: the nitter instance base url should not contain the trailing / --- nitter/nitter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nitter/nitter.php b/nitter/nitter.php index fab7aa06..549356de 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -38,6 +38,9 @@ function nitter_install() function nitter_addon_admin_post(App $a) { $nitterserver = trim($_POST['nitterserver']); + if ((substr($apiurl, -1) == '/')) { + $apiurl = substr($apiurl, 0, -1); + } DI::config()->set('nitter', 'server', $nitterserver); } -- 2.39.5