[wp-trac] [WordPress Trac] #16765: There's a problem to show one letter
WordPress Trac
wp-trac at lists.automattic.com
Sat Oct 15 01:43:08 UTC 2011
#16765: There's a problem to show one letter
--------------------------+-------------------------
Reporter: maorb | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Charset | Version: 3.0.5
Severity: normal | Resolution: worksforme
Keywords: |
--------------------------+-------------------------
Changes (by SergeyBiryukov):
* milestone: Awaiting Review =>
Comment:
Replying to [ticket:16765 maorb]:
> The issue is currently in contact form7, when there is a checkbox input
and the value contains the letter "nun".
> It is saved to the db ok, but being pulled not ok and appear to be
fitered out and causing the whole checkbox to be filtered out and not
shown.
Turned out to be a Contact Form 7 issue. Cyrillic characters are filtered
out too.
Similar to [12501], the regular expression in `contact-
form-7/includes/shortcodes.php`:
{{{
$attr = trim( preg_replace( '/\s+/', ' ', $m[3] ) );
}}}
needs to be replaced with:
{{{
$attr = trim( preg_replace( '/[\r\n\t ]+/', ' ', $m[3] ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16765#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list