[mimp] Preferences problem and "Bad content encountered"

Tuukka Karvonen tuukka.karvonen at hut.fi
Wed Jan 7 10:21:52 PST 2004


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



More information about the mimp mailing list