logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: squirrelmail/src download.php,1.134,1.135: msg#00139

Subject: CVS: squirrelmail/src download.php,1.134,1.135
Update of /cvsroot/squirrelmail/squirrelmail/src
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23784/src

Modified Files:
        download.php 
Log Message:
Fix undefined function when downloading attachments.  See comments for details.

Index: download.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/download.php,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -w -r1.134 -r1.135
--- download.php        5 Aug 2006 14:39:15 -0000       1.134
+++ download.php        16 Aug 2006 16:38:46 -0000      1.135
@@ -22,6 +22,19 @@
 require(SM_PATH . 'functions/mailbox_display.php');
 require(SM_PATH . 'functions/mime.php');
 
+/**
+ * If a message is viewed from the search page, 
$aMailbox[$passed_id]['MESSAGE_OBJECT']
+ * is not initialized, which makes this page error out on line 65 with an 
+ * undefined function.  We need to include some additional files in case the
+ * object has not been initialized.
+ * 
+ * TODO: Determine why the object in question is not initialized when coming 
from
+ *       a search page and correct.  Once that is done, we can remove these
+ *       includes.
+ */
+require(SM_PATH . 'functions/imap_messages.php');
+require(SM_PATH . 'functions/date.php');
+
 header('Pragma: ');
 header('Cache-Control: cache');
 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>