Add compatibility with Dovecot's bigint UIDs
[squirrelmail.git] / src / view_header.php
index 2d81aa62380443b1cbf2332c7239b28759036b81..aeebe577a342da08f6d20517fedd9f77b770ca75 100644 (file)
@@ -11,6 +11,9 @@
  * @package squirrelmail
  */
 
+/** This is the view_header page */
+define('PAGE_NAME', 'view_header');
+
 /**
  * Include the SquirrelMail initialization file.
  */
@@ -80,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;
 }
@@ -115,4 +116,3 @@ $oTemplate->assign('headers', $aTemplateHeaders);
 $oTemplate->display('view_header.tpl');
 
 $oTemplate->display('footer.tpl');
-?>
\ No newline at end of file