Posted on: 10/29/03 05:48pm
By: Anonymous (Anonymous)
In config.php,v 1.69.2.2.2.1 2003/10/12 12:19:19
the NEW format for admin_html is
$_CONF['admin_html'] = array (
'p' => array('class' => 1, 'id' => 1, 'align' => 1),
'div' => array('class' => 1, 'id' => 1),
'span' => array('class' => 1, 'id' => 1),
'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1,
'cellspacing' => 1, 'cellpadding' => 1),
'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1),
'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
'colspan' => 1, 'rowspan' => 1),
'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1,
'colspan' => 1, 'rowspan' => 1)
Do I simply add
'img' => array(),
as the next line to enable the img tag?
Are the class and id values required?
Thanks
GF
Re:'admin_html' img tag
Posted on: 10/30/03 03:31am
By: Dirk
You will need to add all the attributes that you want to allow for the img tag - especially the 'src' attribute, but also 'alt', and possibly 'title', 'width', 'height', and 'border', too:
'img' => array('src' => 1, 'alt' => 1)
Please keep in mind that the img tag could be used to point to a JavaScript which would be executed as soon as the page containing the img tag is displayed. So use this with care and don't allow img tags for normal users (and for Admins only if you trust them).
bye, Dirk
'admin_html' img tag
Posted on: 04/09/04 12:47pm
By: Anonymous (GEEKLOG-RULEZ)
Thanks Dirk!
I was just searching for the same thing and found your solution! it worked!
'admin_html' img tag
Posted on: 09/14/04 12:01pm
By: Anonymous (deceiver)
I've added:
'img' => array('src' => 1, 'alt' => 1)
to my config.php file but then my site errors out with
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/content/d/e/c/dec3iver/html/config.php on line 573
could anyone tell me what the hell is the problem?
'admin_html' img tag
Posted on: 09/14/04 12:37pm
By: Robin
If this is the last line in the list, did you finish the preceeding line with a comma?