Re: [SMARTY-DEV] bugs
| From: | Monte Ohrt | Date: | Fri, 06 Jun 2003 16:13:43 +0000 |
| Subject: | Re: [SMARTY-DEV] bugs | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1544@lists.php.net to get a copy of this message | ||
Oh, never mind. It looks like this fix is already in CVS, did you test
that?
$optgroup_html = '<optgroup label="' .
smarty_function_escape_special_chars($key) . '">' . "\n";
Monte
On Fri, 2003-06-06 at 10:57, Jean-Philippe Barrette-LaPierre wrote:
> I sent a fix for a problem a little time ago, but I'm not sure it was
> fixed on the CVS. There's my previous post. (sorry at this time I was
> unable to give a patch file)
>
> on the line 54 of functions.html_options.php we can read:
> $optgroup_html = '<optgroup label="' . htmlspecialchars($value) .
> '">' .
> "\n";
>
> but this is a bug that cause a optgroup to not have his label correctly
> displayed. the line must be:
> $optgroup_html = '<optgroup label="' . htmlspecialchars($key) .
> '">' . "\n";
--
Monte Ohrt <monte@ispi.net>