Create link to search name if there is 'data' sent in request
This commit is contained in:
parent
6c64fd5afd
commit
e2598ca9d4
|
@ -1281,7 +1281,7 @@ function create_name_link($name, $data=null) {
|
||||||
if($data) {
|
if($data) {
|
||||||
$data = urlencode(base64_encode($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>';
|
$return = '<span class="visited">'.substr(htmlspecialchars($name),0,20).'</span>';
|
||||||
} else {
|
} else {
|
||||||
$return = '<a href="search.php?command=search&searchpoint=Poster&terms='.$name.'&data='.$data.'"><span class="visited">'.substr(htmlspecialchars($name),0,20).'</span></a>';
|
$return = '<a href="search.php?command=search&searchpoint=Poster&terms='.$name.'&data='.$data.'"><span class="visited">'.substr(htmlspecialchars($name),0,20).'</span></a>';
|
||||||
|
|
Loading…
Reference in New Issue