Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

test with bbcode code

Asked Modified Viewed 1,952 times
R
Rimelek
R
  • Senior Member, joined since
  • Contributed 301 posts on the community forums.
  • Started 23 threads in the forums
asked
Senior Member

It is not a bug of code bbcode. Wanabo posted too long text. It can not be stored in the database because the type of "post_message" field is "text" and a field with this type can only contains 65535 characters. Wanabo posted more than 49653 characters which is less than 65535, but php fusion converts characters with "phpentities" function before saving the post. It results more characters and the end of text will not be strored. Closing tag will not be at the end of text, so there is no valid bbcode.

The text should be converted before rendering html and not before storing and php fusion should not store the text without error message if it is too long after converting the text.
0 replies

1 post

W
Wanabo
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
answered
Senior Member

Quote

The text should be converted before rendering html and not before storing and php fusion should not store the text without error message if it is too long after converting the text.
- by Rimelek


Thank You Rimelek, that is a plausible explenation that ik can comprehend and find plausible.
Your recommendations, I quoted them, should be implemented.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

W
W
Wanabo 10
www.probemyip.com/probe-my-ip-80x15.png
pHp-Fusion.Asia & pHp-Fusion.Fr & pHp-Fusion.Cn are available for a localized support community. Send PB for info.
  • Senior Member, joined since
  • Contributed 598 posts on the community forums.
  • Started 94 threads in the forums
  • Started this discussions
R
R
  • Senior Member, joined since
  • Contributed 301 posts on the community forums.
  • Started 23 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet