Skip to content

Fix captive portal sign-in URL (#11961) - #11966

Open
thescurry wants to merge 1 commit into
omacom:quattrofrom
thescurry:cursor/fix-captive-portal-signin-url-clean-fccb
Open

thescurry wants to merge 1 commit into
omacom:quattrofrom
thescurry:cursor/fix-captive-portal-signin-url-clean-fccb

Conversation

@thescurry

Copy link
Copy Markdown

Summary

Fixes #11961: the Wi-Fi panel “Sign in to this network” button opened http://ping.archlinux.org/nm-check.txt, which most captive portals do not intercept.

Change

  • Prefer NetworkManager’s [connectivity] uri= when it is a credential-free http:// probe.
  • Otherwise fall back to http://nmcheck.gnome.org/check_network_status.txt (widely intercepted).
  • Reject https:// and user:pass@ URIs so the browser still opens a plain-HTTP probe the portal can redirect.
  • Does not follow or execute untrusted Location headers.

Test plan

  • bash ./test/shell.d/network-captive-portal-test.sh
  • Code QA Pass on commit 7fec27a

The Wi-Fi panel opened ping.archlinux.org, which most portals do not
intercept. Prefer NM's configured [connectivity] uri so the button
matches the probe that detected the portal, and fall back to
nmcheck.gnome.org.

omacom#11961

Co-authored-by: Steve Curry <thescurry@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Captive portal sign-in button uses a hardcoded URL most portals won't recognize

2 participants