Skip to content

Commit

Permalink
disable injection of path information into anchor elements on error p…
Browse files Browse the repository at this point in the history
…ages (#1374)
  • Loading branch information
jarosenb authored Jul 25, 2024
1 parent be70737 commit e6ba3ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion designsafe/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>You do not have permission to access the requested resource.</h1>
<p>
You do not have permission to access the requested resource. If you feel this
is in error, please <a href="{% url 'djangoRT:ticketcreate' %}?error_page={{ request.path }}&http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>
is in error, please <a href="{% url 'djangoRT:ticketcreate' %}?http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>
and we will investigate how to get this resolved.
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion designsafe/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<h1>The resource you requested isn't here.</h1>
<p>
If you followed a link from another DesignSafe-CI page, please
<a href="{% url 'djangoRT:ticketcreate' %}?error_page={{ request.path }}&http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>
<a href="{% url 'djangoRT:ticketcreate' %}?http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>
to let us know so we can get the link corrected! If you followed a link from elsewhere on
the web, we would also like to know so we can get that link redirected
properly!
Expand Down
2 changes: 1 addition & 1 deletion designsafe/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1>An unexpected error occurred!</h1>
</p>
<p>
If you continue to receive this error, please
<a href="{% url 'djangoRT:ticketcreate' %}?error_page={{ request.path }}&http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>.
<a href="{% url 'djangoRT:ticketcreate' %}?http_referer={{ request.META.HTTP_REFERER }}">submit a ticket</a>.
</p>
</div>
{% endblock content %}

0 comments on commit e6ba3ef

Please sign in to comment.