[Tickets #6834] Re: Error opening pgp passphrase protected mails

bugs at horde.org bugs at horde.org
Tue Jun 10 11:17:18 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6834
-----------------------------------------------------------------------
 Ticket             | 6834
 Updated By         | xk3 at mompl.org
 Summary            | Error opening pgp passphrase protected mails
 Queue              | IMP
 Version            | 4.2
 Type               | Bug
 State              | Feedback
 Priority           | 1. Low
 Milestone          |
 Patch              |
 Owners             | Horde Developers, Michael Slusarz
-----------------------------------------------------------------------


xk3 at mompl.org (2008-06-10 07:17) wrote:

ok, some findings: In the html source of the passphrase dialog (in my
browser), I found following tag containing mailbox and index in question:

<input type="hidden" name="reload"
value="/mail-new/imp/message.php?mailbox=INBOX.Drafts%26index=127" />

Parsing this by  IMP::getCurrentMailboxInfo() in imp/lib/base.php gave:

    [mailbox] => INBOX.Drafts&index=127
    [thismailbox] => INBOX.Drafts&index=127
    [index] =>

which seems to be wrong (and results in the error message), as normal
calling of this message should result in (?):

    [mailbox] => INBOX.Drafts
    [thismailbox] => INBOX.Drafts
    [index] => 127

Hunting down the ampersand and changing in gpg.php with the sledgehammer

//    $t->set('reload', htmlspecialchars(Util::getFormData('reload')));
    $t->set('reload', preg_replace('/%26/', '&',
htmlspecialchars(Util::getFormData('reload')),-1) );

fixed the symptom, but I don´t know where exactly the cause is.

    Martin




More information about the bugs mailing list