Re: Problem with TNEF Attachment Decoder plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This plugin doesn't seem to want to work for me.  It is supposed to allow
> me to view and download the contents of winmail.dat files.  It properly
> shows the contents of the file but crashes when I try to download them.  I
> get the following error when I click on the download button:
>
> ERROR: Could not complete request.
> Query SELECT ""
> Reason Given:  Invalid mailbox name
>
> In my httpd error_log I get the following:
>
> Undefined variable: HTTP_SERVER_VARS in /var/www/
> html/internal/squirrelmail/plugins/attachment_tnef/tnef.php on line 171,
> referer:
> http://www.dcsnow.com/internal/squirrelmail/src/read_body.php?mailbox=Trash&pa
> ssed_id=2735&startMessage=1
>
> I find this block of code in tnef.php:
>
> foreach ($tnef_files as $file) {
>
>   if (get_class($file) != "tnefvcard") {
>     $dl_href = 'tnef.php?' . $HTTP_SERVER_VARS['QUERY_STRING'] .
> "&file_id=$id";
>     $body .= '<TR><TD>&nbsp;&nbsp;</TD><TD>' .
>       "<A HREF=\"$dl_href\">" . $file->getName() . "</A>&nbsp;</TD>" .
>       '<TD><SMALL><b>' . show_readable_size($file->getSize()) .
>       '</b>&nbsp;&nbsp;</small></TD>' .
>       sprintf("<TD><SMALL>[ %s ]&nbsp;</SMALL></TD>", $file->getType() ) .
>       '<TD><SMALL></SMALL></TD><TD><SMALL>&nbsp;' .
>       "<A HREF=\"$dl_href&absolute_dl=1\">" . _("download") . "</A>" .
>       "</SMALL></TD></TR>\n";
>    $show_it = 1;
>   }
>   $id++;
> }
>
> This plugin hasn't been updated since 2003.  Was HTTP_SERVER_VARS
> something that used to be defined somewhere else in SM and has since been
> removed?

turn on php register_long_arrays setting or replace $HTTP_SERVER_VARS with
$_SERVER

-- 
Tomas


--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux