Skip to content

security: normalize the navigation location before building breadcrumb URLs - #47

Merged
TheWitness merged 1 commit into
mainfrom
fix/nav-location
Oct 18, 2026
Merged

TheWitness merged 1 commit into
mainfrom
fix/nav-location

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

quicktree_draw_navigation_text() put the raw location request value into the breadcrumb URL and compared it for the console mapping. It now goes through quicktree_normalize_location(), so only console or tab can reach the URL.

Found while reviewing #42 and #43; the line predates both and is independent of them.

Tests: three Pest cases (console, tab, and a value with quotes, angle brackets and an ampersand). Checked the function with those inputs in php:8.3-cli; Pest runs in CI.

@somethingwithproof
somethingwithproof force-pushed the fix/nav-location branch 2 times, most recently from 0777488 to fdcd44f Compare October 18, 2026 05:23
…b URLs

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit 10453f7 into main Oct 18, 2026
7 checks passed
@TheWitness
TheWitness deleted the fix/nav-location branch October 18, 2026 14:41
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.

2 participants