Skip to content

Commit 6bc7fbf

Browse files
committed
Fix for listing users when someone has an unparsable character (by md5 standards) in their email address.
1 parent 3bb2e92 commit 6bc7fbf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ This file tracks the changes to Wing over time. Especially
44
with respect to new features and compatibility changes.
55
==========================================================
66

7+
2025-08-17
8+
* Fix for listing users when someone has an unparsable character (by md5 standards) in their email address.
9+
710
2025-02-03
811
* Added route for Facebook data deletion at /account/facebook/delete per https://developers.facebook.com/docs/development/create-an-app/app-dashboard/data-deletion-callback/
912
* Fix formatted message parsing where the message resembles but isn't JSON.

lib/Wing/Role/Result/User.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ sub determine_avatar_uri {
627627
return '//graph.facebook.com/'.$self->facebook_uid.'/picture';
628628
}
629629
else {
630-
return '//www.gravatar.com/avatar/'.md5_hex($self->email).'?s=300';
630+
return '//www.gravatar.com/avatar/'.(eval{md5_hex($self->email)}||'broken').'?s=300';
631631
}
632632
}
633633

0 commit comments

Comments
 (0)