Fix friend entries having GET removal links in some cases
							parent
							
								
									5d6b6565cd
								
							
						
					
					
						commit
						bf07367b0c
					
				|  | @ -37,16 +37,16 @@ | |||
|         include 'app/OpenSim.php'; | ||||
|         $opensim = new OpenSim(); | ||||
| 
 | ||||
|         $entry = '<tr><td>'.trim($opensim->getUserName($Friend)).'</td><td><a href="index.php?page=friends&action=remove&uuid='.$row['Friend'].'">LÖSCHEN</a></td></tr>'; | ||||
| 
 | ||||
|         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 = '<tr><td>'.htmlspecialchars(trim($opensim->getUserName($Friend)).' @ '.strtolower($FriendData[1])).'</td><td><form action="index.php?page=friends" method="post">%%CSRF%%<input type="hidden" name="uuid" value="'.htmlspecialchars($row['Friend']).'"><button type="submit" name="remove" class="btn btn-danger btn-sm">LÖSCHEN</button></form></td></tr>'; | ||||
|             $name = $name.' @ '.strtolower($FriendData[1]); | ||||
|         } | ||||
| 
 | ||||
|         $entry = '<tr><td>'.htmlspecialchars($name).'</td><td><form action="index.php?page=friends" method="post">%%CSRF%%<input type="hidden" name="uuid" value="'.htmlspecialchars($row['Friend']).'"><button type="submit" name="remove" class="btn btn-danger btn-sm">LÖSCHEN</button></form></td></tr>'; | ||||
| 
 | ||||
|         $table = str_replace("%%ENTRY%%", $entry."%%ENTRY%%", $table); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Anonymous Contributor
						Anonymous Contributor