Skip to content

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

Merged
jbudz merged 1 commit into4.xfrom
jasper/backport/7855/4.x
Jul 27, 2016
Merged

[backport] PR #7855 to 4.x#7861
jbudz merged 1 commit into4.xfrom
jasper/backport/7855/4.x

Conversation

@elastic-jasper
Copy link
Copy Markdown
Contributor

Backport PR #7855

Commit 1:
Bump marked

@elastic-jasper elastic-jasper added backport This PR is a backport of another PR has conflicts labels Jul 27, 2016
@epixa epixa assigned jbudz and unassigned epixa Jul 27, 2016
---------

**Commit 1:**
Bump marked

* Original sha: 7cf64c7
* Authored by Jonathan Budzenski <jbudz@users.noreply.github.com> on 2016-07-21T18:44:47Z
* Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-07-27T13:54:33Z
@jbudz jbudz force-pushed the jasper/backport/7855/4.x branch from 0fd71b1 to 1042d46 Compare July 27, 2016 16:29
@Bargs Bargs self-assigned this Jul 27, 2016
@Bargs
Copy link
Copy Markdown
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

$scope.$watch('vis.params.markdown', function (html) {
if (!html) return;
$scope.html = $sce.trustAsHtml(marked(html));
$scope.html = marked(html);
Copy link
Copy Markdown
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
Copy Markdown
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

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants