From bf07367b0c8eac9b0aea3fc9db626653e5e9c3ad Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:36 +0200 Subject: [PATCH] Fix friend entries having GET removal links in some cases --- pages/friends.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/friends.php b/pages/friends.php index a8f91c9..1db1ed7 100644 --- a/pages/friends.php +++ b/pages/friends.php @@ -37,16 +37,16 @@ include 'app/OpenSim.php'; $opensim = new OpenSim(); - $entry = ''.trim($opensim->getUserName($Friend)).'LÖSCHEN'; - - if(count($FriendData) > 1) - { + $name = trim($opensim->getUserName($Friend)); + if(count($FriendData) > 1) { $FriendData[1] = str_replace("http://", "", $FriendData[1]); $FriendData[1] = str_replace("https://", "", $FriendData[1]); $FriendData[1] = str_replace("/", "", $FriendData[1]); - $entry = ''.htmlspecialchars(trim($opensim->getUserName($Friend)).' @ '.strtolower($FriendData[1])).'
%%CSRF%%
'; + $name = $name.' @ '.strtolower($FriendData[1]); } + $entry = ''.htmlspecialchars($name).'
%%CSRF%%
'; + $table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table); }