View Single Post
Old 05-31-2005, 07:18 PM   #2 (permalink)
Tuitam
Active Forumer
 
Tuitam's Avatar
 
Join Date: Feb 2005

Posts: 555
Rep Power: 4 Tuitam is on a distinguished road
fTrader: (0)
fBuck$: 8,222
Bank: 0
Total fBuck$: 8,222

My Forumer
My Country:
Default Re: HTML not displaying to guests

I think the bug is related to the small piece of code below taken from "viewtopic.php" version 2.0.15 (line 1050 and subsequent)
PHP Code:
if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
{
  if ( 
$user_sig != '' )
  {
    
$user_sig preg_replace('#(<)([\/]?.*?)(>)#is'"&lt;\\2&gt;"$user_sig);
  }
  if ( 
$postrow[$i]['enable_html'] )
  {
    
$message preg_replace('#(<)([\/]?.*?)(>)#is'"&lt;\\2&gt;"$message);
  }

It should remove html code, when it is not allowed. It seems to me that for some reason the first condition - !$board_config['allow_html'] - does not work, maybe it was accidentaly removed or misspelled. The second one - !$userdata['user_allowhtml'] - seems to work, which explains the behaviour I described in the post above.

Could someone check it please... (presumably Limez)

Tuitam

Tuitam is offline   Reply With Quote