[size=20]I'm happy[/size]

gives

I\'m happy

[notag][size=20]I'm happy[/size][/notag] gives

[size=20]I\'m happy[/size]

both use function calls in the array. I removed the size check for now and it works:

//        '#\[size=(\d+)(?::\w+)?\](.*?)\[/size(?::\w+)?\]#sie'    => '_bbcode_size_tag(\\1, "\\2")',
          '#\[size=(\d+)(?::\w+)?\](.*?)\[/size(?::\w+)?\]#si'    => '<span style="font-size:\\1px">\\2</span>',
CommentFileSizeAuthor
#4 bbcode-filter.patch.txt1.09 KBnaudefj

Comments

naudefj’s picture

Assigned: Unassigned » naudefj
Status: Active » Fixed
geofs’s picture

good!
thanks :-)

geofs’s picture

well,

now it's the double quotes (") that are escaped with a \

:-(

naudefj’s picture

Status: Fixed » Needs review
StatusFileSize
new1.09 KB

Attached is a patch that will strip the slashes out again. It is not perfect (as it will strip user added slashes as well). Nevertheless, this seems to be the best possible solution to the problem.

Please test it and let us know if makes a difference.

naudefj’s picture

Status: Needs review » Fixed

Patch committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)