function printer_friendly_link($mailbox, $passed_id, $passed_ent_id) {
global $javascript_on, $color;
- $params = '?passed_ent_id=' . $passed_ent_id .
+ $params = '?passed_ent_id=' . urlencode($passed_ent_id) .
'&mailbox=' . urlencode($mailbox) .
- '&passed_id=' . $passed_id;
+ '&passed_id=' . urlencode($passed_id);
$print_text = _("View Printable Version");
'<b><center>' .
_("Viewing a Business Card") . " - ";
$msg_url = 'read_body.php?mailbox='.urlencode($mailbox).
- '&startMessage='.$startMessage.
- '&passed_id='.$passed_id;
+ '&startMessage='.urlencode($startMessage).
+ '&passed_id='.urlencode($passed_id);
$msg_url = set_url_var($msg_url, 'ent_id', 0);
'</td></tr>' .
'<tr><td align=center>' .
'<a href="../src/download.php?absolute_dl=true&passed_id=' .
- $passed_id . '&mailbox=' . urlencode($mailbox) .
+ urlencode($passed_id) . '&mailbox=' . urlencode($mailbox) .
'&ent_id=' . urlencode($ent_id) . '">' .
_("Download this as a file") . '</A>' .
'</TD></TR></TABLE>' .