Skip to content

Add referrer url to contact email#7

Merged
peterVorman merged 3 commits intomasterfrom
jguo144/2026-01-20/add-referrer-url
Jan 23, 2026
Merged

Add referrer url to contact email#7
peterVorman merged 3 commits intomasterfrom
jguo144/2026-01-20/add-referrer-url

Conversation

@jguo144
Copy link
Collaborator

@jguo144 jguo144 commented Jan 23, 2026

Description

Add referrer url to the contact email content to provide more context. Also display the dataset title when the referrer url is from a dataset page.

  • Add hidden form field for referrer_url
  • Validates that referrer_url starts with ckan.site_url to prevent manipulation of the hidden field
  • Tries to get dataset title if referrer_url is from a dataset

Copy link

@orca-security-us orca-security-us bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@jguo144 jguo144 force-pushed the jguo144/2026-01-20/add-referrer-url branch from 6b36ffb to 6f26493 Compare January 23, 2026 00:31
Copy link

@peterVorman peterVorman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@peterVorman peterVorman merged commit 6c0d8be into master Jan 23, 2026
11 checks passed
@peterVorman peterVorman deleted the jguo144/2026-01-20/add-referrer-url branch January 23, 2026 15:49
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