mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 00:30:21 +00:00
use rtrim
This commit is contained in:
parent
81fce72efe
commit
a843e96c1f
1 changed files with 1 additions and 4 deletions
|
@ -37,10 +37,7 @@ function nitter_install()
|
|||
*/
|
||||
function nitter_addon_admin_post(App $a)
|
||||
{
|
||||
$nitterserver = trim($_POST['nitterserver']);
|
||||
if ((substr($apiurl, -1) == '/')) {
|
||||
$apiurl = substr($apiurl, 0, -1);
|
||||
}
|
||||
$nitterserver = rtrim(trim($_POST['nitterserver']),'/');
|
||||
DI::config()->set('nitter', 'server', $nitterserver);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue