Skip to content

feat: discourage URLs in Person names#7453

Merged
rjsparks merged 3 commits intoietf-tools:mainfrom
jennifer-richards:discourage-urls-in-names
May 22, 2024
Merged

feat: discourage URLs in Person names#7453
rjsparks merged 3 commits intoietf-tools:mainfrom
jennifer-richards:discourage-urls-in-names

Conversation

@jennifer-richards
Copy link
Copy Markdown
Member

This disallows @, :, and / in the Person.name, .plain, .ascii, and .ascii_short fields via a validator on the model field. The aim is to make it harder for bad actors to stuff a URL in one of these fields.

@ has long been disallowed via validation in the
views and "/" has been disallowed for the name
field via a validator. This adds @ and : to the
validator and applies it to the name, plain,
ascii, and ascii_short fields. This should
apply everywhere we use a ModelForm.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.91%. Comparing base (187c2c5) to head (062549b).
Report is 207 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7453      +/-   ##
==========================================
- Coverage   88.98%   88.91%   -0.08%     
==========================================
  Files         291      294       +3     
  Lines       40717    41158     +441     
==========================================
+ Hits        36233    36594     +361     
- Misses       4484     4564      +80     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rjsparks rjsparks merged commit d5009ee into ietf-tools:main May 22, 2024
@jennifer-richards jennifer-richards deleted the discourage-urls-in-names branch May 23, 2024 12:54
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants