We have moved to Github. Please open tickets there.

Opened 3 years ago

Closed 16 months ago

Last modified 12 months ago

#1853 closed Defect (fixed)

TheWire not making links from UTF8 user names

Reported by: brettp Owned by: cash
Priority: normal Milestone: Elgg 1.8.4
Component: The Wire Version: 1.7
Severity: minor Keywords: thewire, utf8, preg, regexp
Cc: brettp Difficulty:

Description

(Copied from http://trac.elgg.org/elgg/ticket/1134)

The regexp /\@([\A-Za-z0-9\_\.\-]*)/i from object/thewire.php(line 75) will match only with Ascii letters. Lets say, i have an user called "tyúkanyó". TheWire? will only make link from "ty" part, and cutting "úkanyó", therefore the link will point to an non-exist user. Replacig the regexp string with /\@([\p{L}0-9\_\.\-]*)/u works for me.

Change History (5)

comment:1 Changed 16 months ago by cash

  • Milestone set to Needs Review
  • Severity set to minor
  • Version set to 1.7

check this with 1.8

comment:2 Changed 16 months ago by cash

  • Milestone changed from Needs Review to Elgg 1.8.4

still not working

comment:3 Changed 16 months ago by cash

  • Owner set to cash
  • Status changed from new to assigned

comment:4 Changed 16 months ago by cash

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixes #1853 matching UTF8 characters in usernames

Changeset: c578c639527fad98ae60676ea58860809462d4dc

comment:5 Changed 12 months ago by cash

Fixes #1853 matching UTF8 characters in usernames

Changeset: c578c639527fad98ae60676ea58860809462d4dc

Note: See TracTickets for help on using tickets.