Skip to content

Commit 399a2d5

Browse files
authored
Fix a bug with stripping www subdomains (#17980)
1 parent 1e8b2a5 commit 399a2d5

File tree

1 file changed

+1
-1
lines changed
  • warehouse/admin/templates/admin/organization_applications

1 file changed

+1
-1
lines changed

warehouse/admin/templates/admin/organization_applications/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h4 class="modal-title" id="deferModalLabel">
206206
<div class="hidden" id="AddOrgEmailTemplate">
207207
Hello {{ organization_application.submitted_by.username }}!
208208
We'd be happy to approve this organization request,
209-
but ask that you first add an @{% with parsed = organization_application.link_url|urlparse %}{% if parsed.host %}{{ parsed.host.lstrip("www.") }}{% else %}NONE{% endif %}{% endwith %}
209+
but ask that you first add an @{% with parsed = organization_application.link_url|urlparse %}{% if parsed.host %}{{ parsed.host[4:] if parsed.host.startswith('www.') else parsed.host }}{% else %}NONE{% endif %}{% endwith %}
210210
email address to your PyPI account,
211211
complete the verification,
212212
and respond using the linked form.

0 commit comments

Comments
 (0)