allow loading local pages from local IPs
ClosedPublic

Authored by sebas on Dec 21 2019, 10:24 AM.

Details

Summary

The URL validation regex excluded local IPs. This seems unnecessary
limiting, as it makes it very hard to reach perfectly valid local
webservers (often found it smart homes, for example).

This patch removes this restriction, allowing me to reach some lights,
my NAS and a bunch of other local servers from Angelfish.

Other webbrowsers do not restrict this, and it's unclear to me from
looking at the source why Angelfish should.

Test Plan

Surfed to my local webservers, they now work.

Diff Detail

Repository
R23 Plasma AngelFish
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sebas requested review of this revision.Dec 21 2019, 10:24 AM
sebas created this revision.
bshah accepted this revision as: Plasma.Dec 21 2019, 10:28 AM
bshah added a subscriber: bshah.

LGTM.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 21 2019, 10:47 AM
This revision was automatically updated to reflect the committed changes.

this looks good, I don't know why local IPs were excluded. I assume this was just a copy paste error as this regex was maybe intended for a different use case originally? @jbbgameich might know more

sebas added a comment.Dec 22 2019, 4:20 PM

Note that local hostnames are also excluded, and IMO that's also not helpful. My weekend-regexp-foo isn't sufficient to fix this right now, perhaps someone wants to give this a try?