Re: Preferences problem and "Bad content encountered"

"Tuukka Karvonen" <[email protected]> Wed, 7 Jan 2004 20:21:52 +0200
Newsgroups gmane.comp.horde.mimp
Message-ID <[email protected]>
I found what caused the problem. There is empty postfield with the value
"Log in":

> method="post"><postfield name="" value="Log in"/><postfield name="Horde"

This is caused by bug(?) in the horde/lib/Mobile/Renderer/wml.php. I would
suggest a patch to the _renderSubmit function:

Currently it always prints postfield for the submit button always:
printf('<postfield name="%s" value="%s"/>', $submit->get('name'),
$this->escape($submit->get('label')));

It should print it only if the name is non-empty .i.e.
if (!empty($submit->get('name')))
    printf('<postfield name="%s" value="%s"/>', $submit->get('name'),
$this->escape($submit->get('label')));

Tuukka


-- 
mimp mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]