[imp] Re: imp cvs head viewing messages with html error

Jan Schneider jan at horde.org
Mon Aug 2 10:35:18 PDT 2004


Zitat von Vijay Mahrra <vijay.mahrra at es.easynet.net>:

> Jan Schneider alleged:
>
>> Zitat von Vijay Mahrra <vijay.mahrra at es.easynet.net>:
>>
>>> I had a bug in IMP-CVS HEAD
>>>
>>> Warning: Invalid argument supplied for foreach() in
>>> /data/apache/vhosts/www.mahrra.com/htdocs/horde/imp/lib/Identity/imp.php
>>> on line 311
>>>
>>> when viewing messages which had a HTML attachment, not sure why exactly
>>> but changing the offending line seemed to work:
>>
>> What *was* $tieaddr actually if not an array?
>
> Sorry for the lack of detail.
>
> It was a STRING type of the tieto addresses (from my identities) separated by
> spaces

That doesn't make much sense, these values, whatever you enter, get *forced*
to arrays before they get stored.

> string "vijay at example.com vijay.mahrra at example.com"
> string "webmaster at example.com webmaster at example2.com"

How did you enter them?

> yet in the "Addresses to explicitly tie to this identity: (optional, enter
> each address on new line)" box, the addresses appear OK, i.e. one address per
> line in the textarea.
>
> There must be some split() call going wrong when
> $this->getValue('tieto_addr', $key);
> calls the parent classes Identity->getValue()
>
> I am using Mozilla 1.7

Which platform?

> I'll look into this a bit more and see if there's a patch or something i can
> make.

That would be great. The values get converted to array in
imp/lib/Identity/imp.php in verify().

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the imp mailing list