Fix unsanitized name in profile

pull/1/head
yflory 2019-12-18 16:08:22 +01:00
parent a34aad78ab
commit 704d42d169
1 changed files with 1 additions and 1 deletions
www/profile

View File

@ -232,7 +232,7 @@ define([
// If this curve has sent us a friend request, we should not be able to sent it to them
var friendRequests = common.getFriendRequests();
if (friendRequests[data.curvePublic]) {
$button.append(Messages._getKey('friendRequest_received', [data.name || Messages.anonymous]))
$button.append(Messages._getKey('friendRequest_received', [name || Messages.anonymous]))
.click(function () {
UIElements.displayFriendRequestModal(common, friendRequests[data.curvePublic]);
});