This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Avoid handling blob urls in avatar as unsafe value #105
Labels
Comments
Hi @okoska79 , Sounds great to me! You happy in pushing a pull request for these changes so I can release it as a patch with If not I can do it at some point during this weekend. I wonder if we have to follow the same approach for Cheers! |
I know this is not part of this issue, but please check this: |
Merged
@JosePolanco18 I've moved your request to another issue as it is not related to the issue being reported here. Please track it here from now on: #107 |
Closing this issue as the fix was released with version |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi @rpaschoal!
Currently, if the url of the avatar image is something like "blob:http://..." then getting the avatar throws an exception as using an unsafe value. Unfortunatelly, because of the missing property binding, sanitizing the url does not help. However, if the src="{{user.avatar}}" in line 31 of ng-chat.component.html would be replaced by [src]="user.avatar" and the avatar would be a string | SafeResourceUrl type then it would solve the issue.
What do you think?
Thanks in advance,
Peter
The text was updated successfully, but these errors were encountered: