sf bug#582545
Scott Kindley <ckindley-/Nmu/[email protected]>
| Newsgroups | gmane.comp.web.envolution.devel |
|---|---|
| Message-ID | <[email protected]> |
In content-submission forms the list of allowed HTML-
tags show all HTML-tags that are set in admin-settings
instead of only the 'choosen' allowed ones.
Below I have pasted my own hack from NS-Polls
(comments.php) at aprox. line 640.
This hack handles the output-problem for now but one
have to replace all instances in similar forms.
An other way of solving the issue could be to create a
variable/array that lists only the 'choosen' allowed
ones.
/*----------
holistic 2002-07-17
Change: In order to list only allowed tags in comment-
form, an if-statement is added that filters out the tags
that have been given the value zero in the
function 'settings_admin_generate' in admin.php -
variable/array 'allowedhtml'.
(Commented line below is the original code
before change)
// while (list($key,)= each
($AllowableHTML)) echo " <".$key.">";
----------*/
// (Line below is the new fitering line.)
while (list($key,)= each
($AllowableHTML)) if($AllowableHTML[$key]>0)
{echo " <".$key.">";};
/*----------*/
Perhaps we should check into this.
Zoom