Create link to search name if there is 'data' sent in request

This commit is contained in:
Retro_Guy 2022-02-25 05:24:57 +00:00
parent 6c64fd5afd
commit e2598ca9d4
1 changed files with 1 additions and 1 deletions

View File

@ -1281,7 +1281,7 @@ function create_name_link($name, $data=null) {
if($data) {
$data = urlencode(base64_encode($data));
}
if (strpos($name, '...@') !== false && (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true)) {
if ((strpos($name, '...@') !== false && (isset($CONFIG['hide_email']) && $CONFIG['hide_email'] == true)) && !$data) {
$return = '<span class="visited">'.substr(htmlspecialchars($name),0,20).'</span>';
} else {
$return = '<a href="search.php?command=search&searchpoint=Poster&terms='.$name.'&data='.$data.'"><span class="visited">'.substr(htmlspecialchars($name),0,20).'</span></a>';