Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

EladBezalel
Copy link
Member

Original author is @jelbourn

@EladBezalel EladBezalel added the needs: review This PR is waiting on review from the team label Aug 2, 2016
$templateRequest(url, true).then(extractSvg, announceAndReject);
});
}

return dataUrlRegex.test(url)
var testUrl = angular.isString(url) ? url : $sce.getTrustedResourceUrl(url);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line isn't necessary any more now that the trustAs occurs later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jelbourn - what should the line be?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove it entirely and use the url directly in the check

@EladBezalel EladBezalel deleted the fix/icon-security branch August 2, 2016 17:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants