You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ X ] bug report -> please search issues before submitting
- [ ] feature request
OS and Version?
Ubuntu 16.04
Versions
Angular 8.3.1
NPM 6.7.0
Looking at the source code for the mat link preview directive, Im a little concerned about the way youre subscribing to input events and logging the data. It seems like if you use the matLinkPreview directive anywhere in your application then it will log all of your inputs(including password fields) as plain text in the console.
@AnthonyNahas Sounds good man and no problem. I'm happy to contribute, the library that youre providing is really nice. If you have any concerns with the way I try to mend this issue please lmk and ill get to it as soon as possible.
As for my idea on fixing this, which you will see in the PR. I basically figured that we could remove the subscription to all input events and apply an oninput function to the actual element that the directive is bound to(which angular is able to inject into the directive through an element ref). This way youre not subscribing to all input events only the input event for the element its bound on.
Bug Report or Feature Request (mark with an
x
)OS and Version?
Versions
Looking at the source code for the mat link preview directive, Im a little concerned about the way youre subscribing to input events and logging the data. It seems like if you use the matLinkPreview directive anywhere in your application then it will log all of your inputs(including password fields) as plain text in the console.
The piece of code that im looking at is
The text was updated successfully, but these errors were encountered: