Opened 3 weeks ago
Closed 3 weeks ago
#3664 closed defect (bug) (fixed)
Topic title length should check utf-8 encoding
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | 2.6.0 |
| Component: | Component - Topics | Keywords: | has-patch |
| Cc: |
Description
In #3189, topic title length is enforced with mb_strlen( $title, '8bit' ). However we should change the encoding from 8bit to utf-8 instead.
To duplicate this problem, try to post a new topic with the following topic title:
“Let’s try to create a new topic!” This should post correctly because it should
This is under 80 characters, but due to the three quotation characters using unicode and due to the current 8bit encoding check, this will not post as the three quotation characters increases the character count by three. Switching the mb_strlen() encoding to utf-8 works.
See attached patch.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 7397: