Skip to content

UX: show complete URL path if website domain is same as instance domain#5

Open
akshayutture-augment wants to merge 1 commit into
url-handling-prefrom
url-handling-post
Open

UX: show complete URL path if website domain is same as instance domain#5
akshayutture-augment wants to merge 1 commit into
url-handling-prefrom
url-handling-post

Conversation

@akshayutture-augment

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +153 to +154
def include_website_name
website.present?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep website_name behind untrusted-user guard

The new website_name attribute is always serialized whenever website.present? because include_website_name (lines 153‑154) ignores the scope.restrict_user_fields? guard that hides :website for TL0 users viewed anonymously. As a result an anonymous visitor can still see model.website_name (and the UI now renders it) even though the real website URL is intentionally withheld, leaking information that was meant to be hidden. website_name needs to obey the same restriction as website (e.g. add it to untrusted_attributes or check scope.restrict_user_fields? before including it).

Useful? React with 👍 / 👎.

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