• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Partial fix Label font display problem(標簽字型顯示的問題)

When a member from the articles posted elsewhere

Often occurs as the second article

Of course this is only posted a Chinese Web page and only occurs when there is a Chinese font set.

我是有找到相關的問題在 \library\XenForo\BbCode\Formatter\Base.php 這個檔案上。
Related issues in the \library\XenForo\BbCode\Formatter\Base.php I have found on this file.

I will be the FONT is from the original
'optionRegex' => '/^[a-z0-9 \-]+$/i',

'optionRegex' => '/[\x{4E00}-\x{9FBF}]|[a-zA-Z0-9\s]/u',

This does, of course you can use. But I'm not sure if this is what error

This reference also can according to your professional point of view that are there are also what kind of problems


XenForo developer
Staff member
I have made a change for this issue, and I'll likely make a further change in a future version when I can do proper testing on it (on a wide range of servers).

Right now, the HTML -> BB code processor will now ignore font tags that won't be processed by the BB code parser. I'm hesitant to negate the regex (blacklist rather than whitelist) due to potential security issues.