correctly set, and generates an error on reply (#
1179754).
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9234
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- If default SquirrelMail language is set to empty string, interface will
try to follow browser's HTTP_ACCEPT_LANGUAGE header or fallback to en_US
(#764709).
- If default SquirrelMail language is set to empty string, interface will
try to follow browser's HTTP_ACCEPT_LANGUAGE header or fallback to en_US
(#764709).
+ - If From: field is unset in an email, header object for from field is not
+ correctly set, and generates an error on reply (#1179754).
Version 1.5.0 - 2 February 2004
-------------------------------
Version 1.5.0 - 2 February 2004
-------------------------------
global $reply_citation_style, $reply_citation_start, $reply_citation_end;
// FIXME: why object is rewritten with string.
global $reply_citation_style, $reply_citation_start, $reply_citation_end;
// FIXME: why object is rewritten with string.
- $orig_from = decodeHeader($orig_from->getAddress(false),false,false,true);
+ if (!is_object($orig_from)) {
+ $orig_from = '';
+ } else {
+ $orig_from = decodeHeader($orig_from->getAddress(false),false,false,true);
+ }
// $from = decodeHeader($orig_header->getAddr_s('from',"\n$indent"),false,false);
/* First, return an empty string when no citation style selected. */
// $from = decodeHeader($orig_header->getAddr_s('from',"\n$indent"),false,false);
/* First, return an empty string when no citation style selected. */
-?>
\ No newline at end of file