Welcome to Geeklog, Anonymous Thursday, October 10 2024 @ 10:12 pm EDT
Geeklog Forums
'admin_html' img tag
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
10
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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:
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
'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
10
14
Quote
GEEKLOG-RULEZ
Anonymous
Thanks Dirk!
I was just searching for the same thing and found your solution! it worked!
I was just searching for the same thing and found your solution! it worked!
13
14
Quote
deceiver
Anonymous
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?
'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?
8
8
Quote
All times are EDT. The time is now 10:12 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content