Add compatibility with Dovecot's bigint UIDs
[squirrelmail.git] / src / view_header.php
index 0e0b2e218901a711b90ab472364ab7017f44bbf9..aeebe577a342da08f6d20517fedd9f77b770ca75 100644 (file)
@@ -83,9 +83,7 @@ function parse_viewheader($imapConnection,$id, $passed_ent_id) {
 }
 
 /* get global vars */
-if ( sqgetGlobalVar('passed_id', $temp, SQ_GET) ) {
-  $passed_id = (int) $temp;
-}
+sqgetGlobalVar('passed_id', $passed_id, SQ_GET, NULL, SQ_TYPE_BIGINT);
 if ( sqgetGlobalVar('mailbox', $temp, SQ_GET) ) {
   $mailbox = $temp;
 }