Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 16 years ago

#880 closed defect (bug) (fixed)

Unicode group name gets broken

Reported by: dolugen Owned by:
Priority: minor Milestone: 1.5
Component: Core Version:
Severity: Keywords: needs-patch
Cc:

Description

When I create a group with a long name in cyrillic (unicode), very rarely, the name gets broken, like not-a-working-group-name%d. So I can't access the group clicking its link. Notice the end of the name.

You can try recreating the bug with the name "Уран бичлэг сонирхогчид", any other name I tried was fine ("Amateur Calligraphers" in Mongolian).

Change History (7)

#1 @apeatling
17 years ago

  • Milestone 1.0.41.1

Milestone 1.0.4 deleted

#2 @apeatling
17 years ago

  • Milestone 1.11.2

#3 @apeatling
17 years ago

  • Keywords needs-patch added; cyrillic group slug unicode removed

Need i18n help on this one.

#4 @apeatling
17 years ago

  • Milestone 1.21.2.1

#5 @erosaung
16 years ago

  • ComponentCore

Myanmar Unicode is also got error

#6 @boonebgorges
16 years ago

The problem seems to happen when the slug gets run through the chain sanitize_title() -> sanitize_title_with_dashes() -> utf8_uri_encode(). The process of uri_encoding the non-Latin characters makes the slug very long. sanitize_title_with_dashes() limits the length of the converted slug to 200 characters, but the 'slug' column in the BP groups table only allowed for 100 characters. As a result, some of the uri-encoded characters were getting cut off and made unreadable.

Allowing the slug column to accept 200 characters fixes the problem.

#7 @boonebgorges
16 years ago

  • Resolutionfixed
  • Status newclosed

(In [3677]) Allow group slugs to be up to 200 characters to account for uri-encoding of non-latin alphabets. Fixes #880

Note: See TracTickets for help on using tickets.