Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] PR #7855 to 4.x #7861

Merged
merged 1 commit into from
Jul 27, 2016
Merged

[backport] PR #7855 to 4.x #7861

merged 1 commit into from
Jul 27, 2016

Conversation

elastic-jasper
Copy link
Contributor

Backport PR #7855

Commit 1:
Bump marked

---------

**Commit 1:**
Bump marked

* Original sha: 7cf64c7
* Authored by Jonathan Budzenski <[email protected]> on 2016-07-21T18:44:47Z
* Committed by Jonathan Budzenski <[email protected]> on 2016-07-27T13:54:33Z
@Bargs Bargs self-assigned this Jul 27, 2016
@Bargs
Copy link
Contributor

Bargs commented Jul 27, 2016

Don't we typically register angular services with webpackShims (https://github.com/elastic/kibana/blob/e1b395004cf27e9d4f42dbca53150d2b57cbc82b/webpackShims/elasticsearch.js for example)?

Maybe something to fix in master rather than this backport though

module.controller('KbnMarkdownVisController', function ($scope, $sce) {
$scope.$watch('vis.params.markdown', function (html) {
if (!html) return;
$scope.html = $sce.trustAsHtml(marked(html));
$scope.html = marked(html);
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be safer to manually sanitize this here with $sanitize rather than relying on ng-bind-html in the template. I'd be worried that someone might accidentally mis-use $scope.html in the future.

@Bargs
Copy link
Contributor

Bargs commented Jul 27, 2016

Backport LGTM. The couple of things I mentioned above are more appropriate to put in master, if at all. I really just needed a place to write them down so I wouldn't forget.

@Bargs Bargs removed their assignment Jul 27, 2016
@jbudz jbudz merged commit 44c9f98 into 4.x Jul 27, 2016
@jbudz jbudz deleted the jasper/backport/7855/4.x branch July 27, 2016 20:03
This was referenced Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants