Skip to content

Commit

Permalink
Closes #6599 validate image source before saving it into the DB (#6605)
Browse files Browse the repository at this point in the history
Co-authored-by: Gael Robin <[email protected]>
Co-authored-by: Michael Lee <[email protected]>
Co-authored-by: Mathieu Lamiot <[email protected]>
  • Loading branch information
4 people authored Jun 28, 2024
1 parent a8da7ae commit 3db0518
Show file tree
Hide file tree
Showing 6 changed files with 531 additions and 17 deletions.
2 changes: 1 addition & 1 deletion assets/js/lcp-beacon.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class RocketLcpBeacon {

_fillATFWithoutDuplications(elements) {
elements.forEach(({ element, elementInfo }) => {
if ( this._isDuplicateImage(element) ) {
if ( this._isDuplicateImage(element) || !elementInfo ) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/js/lcp-beacon.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3db0518

Please sign in to comment.