Closed Bug 508303 Opened 16 years ago Closed 16 years ago

Need mb library for SUMO

Categories

(support.mozilla.org :: General, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: paulc, Assigned: paulc)

References

Details

(Whiteboard: tiki_upstream)

Attachments

(1 file)

There's a lot of places on SUMO where we use trim(). Since we're dealing with multi-byte characters, we should have a mb_trim() function and use that instead, it's safer. Same goes for a few other functions, such as str_replace()
Attached patch patch, v1Splinter Review
FTR, I plan to use this in the newsearch rewrite part of ForumUX. So no need to review this yet, as it's not being used anywhere.
Attachment #392529 - Flags: review?(smirkingsisyphus)
Attachment #392529 - Flags: review?(laura)
We could make this part of 1.3 and replace trim() with mb_trim() pretty much everywhere. What do you think, Laura?
Severity: normal → major
Whiteboard: tiki_triage
Attachment #392529 - Flags: review?(laura) → review+
r50947 / r50948 QA: Nothing to verify here, but we will use these multi byte friendly functions to trim whitespace from strings in the future.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Blocks: 514820
Comment on attachment 392529 [details] [diff] [review] patch, v1 Just going through my r? list
Attachment #392529 - Flags: review?(smirkingsisyphus)
Whiteboard: tiki_triage → tiki_discuss
Not sure why tiki_discuss was added here.
Whiteboard: tiki_discuss → tiki_upstream
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: