Skip to content

Commit

Permalink
URL-encode the link to a person's public profile, fixing validation e…
Browse files Browse the repository at this point in the history
…rrors.

Commit ready for merge.
 - Legacy-Id: 19494
  • Loading branch information
larseggert committed Oct 29, 2021
1 parent 722c59b commit 4ed19e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ietf/templates/base/menu_user.html
Expand Up @@ -17,7 +17,7 @@
{% if user.is_authenticated %}
<li><a rel="nofollow" href="/accounts/logout/" >Sign out</a></li>
<li><a rel="nofollow" href="/accounts/profile/">Account info</a></li>
<li><a href="/person/{{user.person.name}}">Public profile page</a></li>
<li><a href="/person/{{user.person.name|urlencode}}">Public profile page</a></li>
<li><a href="{%url "ietf.cookies.views.preferences" %}" rel="nofollow">Preferences</a></li>
<li><a href="{%url "ietf.ietfauth.views.apikey_index" %}" rel="nofollow">API keys</a></li>
<li><a rel="nofollow" href="/accounts/password/">Change password</a></li>
Expand Down Expand Up @@ -69,4 +69,4 @@
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>RFC Editor</li>
<li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li>
{% endif %}
{% if flavor == "top" %}</ul>{% endif %}
{% if flavor == "top" %}</ul>{% endif %}

0 comments on commit 4ed19e1

Please sign in to comment.