[wp-trac] [WordPress Trac] #23495: Special characters can truncate WP Option value
WordPress Trac
noreply at wordpress.org
Sun Feb 17 20:23:34 UTC 2013
#23495: Special characters can truncate WP Option value
-----------------------------+--------------------------
Reporter: TobiasBg | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
I recently experienced something weird when adding a string from a foreign
language as the value of a WP Option.
Try this:
{{{
add_option( 'weird_character_test', 'test1𠆢test2' );
}}}
This will only be saved as "test1" in the wp_options table, as one can see
after
{{{
echo get_option( 'weird_character_test' );
}}}
or quicker on /wp-admin/options.php.
Could this be UTF8 related? DB collation is "utf8_general_ci". Or could it
be the result of sanization?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23495>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list