Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^2: Proper nesting of HTML to be enforced (bugs)

by tye (Sage)
on Feb 03, 2004 at 19:59 UTC ( #326301=note: print w/replies, xml ) Need Help??

in reply to Re: Proper nesting of HTML to be enforced
in thread Proper nesting of HTML to be enforced

chatterbox faq dies

Interesting. It appears that ($q->param('htmlnest'))[-1] is sometimes complaining of "Can't use an undefined value as an ARRAY reference", which is strange since that code shouldn't be trying to do what it is complaining about not being able to do (but I don't see any other candidates for the complaint near line 205). I'll look at it some more.

Update: Fixed. The line number reported for the error was way off (probably because it was inside of a multi-line s{}{}gsex block).

/me [broken]

That is now fixed thanks to theorbtwo. Note that ;htmlerror=1 will show greyed </i>s on the end of any /me chatter lines unless the author included their own </i>. This is by design as otherwise you'd see a visible </i> if someone chats "/me reads </i>The Times", whether htmlerror is enabled or not.

A missing tag in a context where font or span is not allowed, combined with htmlerror=1 mode, will insert the font and span tags, then escape them.

Uh, no, it won't. If you've seen this happen, then point it out to me. I could happen if content gets filtered twice, but I think that was only happening for chatter and the outer filter already allowed FONT and SPAN and I think you've removed that outer filter now (thanks), so I don't think this is a problem anywhere.

[use] <font color="" class="">

Works for me. I'll change that the next time I touch the code.

Update: Fixed.


- tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://326301]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-05-25 21:07 GMT
Find Nodes?
    Voting Booth?