Bug-Report: Critical bug when input contains non-unicode characters (2 posts)

  1. davidnde
    Posted 4 years ago #

    Long story short: Does the user input contain 'strange' Characters, WordPress behaves relly strange. To examples:
    1) Inserting content with 'strange' Characters, will only insert content up to the last non-'strange' character
    2) I have a plugin, that stores arrays in custom fields. Do the arrays contain 'strange' characters the hole field gets corrupted (I think something like the serialised version of the array breaks right before the first strange character would appear). This is relly bad, because the hole array disappears, not only some content.

    3) The content of a post just strips the srange characters when saving.

    To reproduce, try it with the following content: http://www.continent7.com/uploads/test.txt

  2. davidnde
    Posted 4 years ago #

    By the way, I now protect userinput with http://stackoverflow.com/questions/1401317/remove-non-utf8-characters-from-string#3521396

    But this should though be fixed...

Topic Closed

This topic has been closed to new replies.

About this Topic