From 33c8b76b9524e629d8c81ea60c0d0bc600eb741b Mon Sep 17 00:00:00 2001 From: kink Date: Sat, 28 Dec 2002 17:33:48 +0000 Subject: [PATCH] Bug in url back to message git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4318 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/vcard.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/vcard.php b/src/vcard.php index 639097ee..650d000a 100644 --- a/src/vcard.php +++ b/src/vcard.php @@ -29,7 +29,7 @@ $mailbox = decodeHeader($_GET['mailbox']); $passed_id = (int) $_GET['passed_id']; $ent_id = $_GET['ent_id']; $passed_ent_id = $_GET['passed_ent_id']; -$QUERY_STRING = $_SERVER['QUERY_STRING']; +$startMessage = (int) $_GET['startMessage']; /* end globals */ $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); @@ -43,8 +43,12 @@ echo '
'; -- 2.25.1
' . '
' . _("Viewing a Business Card") . " - "; -$msg_url = 'read_body.php?' . urlencode(strip_tags(urldecode($QUERY_STRING))); +$msg_url = 'read_body.php?mailbox='.urlencode($mailbox). + '&startMessage='.$startMessage. + '&passed_id='.$passed_id; + $msg_url = set_url_var($msg_url, 'ent_id', 0); + echo ''. _("View message") . ''; echo '