Closed Bug 841628 Opened 11 years ago Closed 11 years ago

Request constructor should verify that url is valid

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: jsantell)

References

Details

Attachments

(1 file)

Assignee: nobody → jsantell
We could go as hard or as easy as we'd like, seems like this is a fun problem: http://mathiasbynens.be/demo/url-regex

I'd rather a more liberal regex than an overly complex/slow/restrictive one as it'd be worse to not let a valid URL in than to let an invalid one work.
Attached file GH Pull Request 911
Attachment #731958 - Flags: review?(evold)
Comment on attachment 731958 [details]
GH Pull Request 911

Thanks!
Attachment #731958 - Flags: review?(evold) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/04c2a1196d0c047530b8fe508dc52971d5111bc1
Merge pull request #911 from jsantell/request-url-validation-841628

Fixes Bug 841628, Request Constructor Validates URL, r+=@erikvold
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Oops I forgot that there was an api change here, and Irakli needs to approve that sort of thing.

Can you take a look at this when you have a chance please Irakli?
Flags: needinfo?(rFobic)
Got a thumbs up from Irakli, after changing method name to `isValidURI`
needinfo is no longer relevant, as Jordan said I have replied in pull.
Flags: needinfo?(rFobic)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: