Closed Bug 1115583 Opened 10 years ago Closed 10 years ago

[SMS] URLs with numbers are recognized as phone numbers

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1091511

People

(Reporter: birtles, Unassigned)

Details

Attachments

(1 file)

See the attached screenshot. I received a message from my carrier asking me to fill out a survey with the following text: [auより]店舗アンケートにご協力をお願いいたしますhttp://au-e.jp/?p=3340XXXXXXXXXXXXX (I've replaced most of the digits here with X and blurred them in the screenshot in case that number is tied to my account some how.) Expected result: The URL is recognized and is clickable. Actual result: The number in the URL is recognized as a phone number and only it is clickable.
I forgot to add that this is on an Fx0 device, i.e. Firefox 2.0.
Looks like we are expecting URLs to be at the start of a string / after whitespace: https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/link_helper.js#L113
mmm yeah, the real issue is that we don't match URL after a full-width character. We have another bug about this but we didn't find that it was a serious enough issue to fix it. But now that I see it's a real issue in the real world, I think we can increase the priority of that issue, so thanks a lot for reporting :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: