Release 13 (devel -> main) #35

Merged
ChaoticByte merged 7 commits from devel into main 2022-11-05 09:54:19 +00:00
3 changed files with 2 additions and 3 deletions
Showing only changes of commit 1e32e2b5dd - Show all commits

View file

@ -69,7 +69,7 @@
<ul class="userlist">
{% for user_ in user_list %}
<li class="userlistButton button" data-username="{{ user_.username }}">
<img src="{{ '/profilepictures?name='|add:user_.profile_picture_filename }}">
<img src="/profilepictures?name={{ user_.profile_picture_filename|urlencode }}">
<div>
{% if user_.first_name %}

View file

@ -3,7 +3,7 @@
<div class="userPanel">
<div class="userInfo">
<img src="{{ '/profilepictures?name='|add:user.profile_picture_filename }}">
<img src="/profilepictures?name={{ user.profile_picture_filename|urlencode }}">
<span>
{% if user.first_name != "" %}
{% translate "User" %}: {{ user.first_name }} {{ user.last_name }} ({{ user.username }})

View file

@ -124,7 +124,6 @@ def redirect_home(request):
def profile_pictures(request):
if not "name" in request.GET:
return HttpResponse(b"", status=400)
print(request.GET["name"])
ppic_filepath = Path(profile_pictures_path / request.GET["name"]).resolve()
try:
ppic_filepath.relative_to(profile_pictures_path)