Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1538)

Unified Diff: pkg/polymer/lib/src/build/wrapped_logger.dart

Issue 487793002: html escape log messages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: use const constructor for HtmlEscape Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/wrapped_logger.dart
diff --git a/pkg/polymer/lib/src/build/wrapped_logger.dart b/pkg/polymer/lib/src/build/wrapped_logger.dart
index c732b75b73c3978be79fc12817242c46e1c59bc4..bd6d4f6dea94f87ae7919360cf4aa67c86c6ac23 100644
--- a/pkg/polymer/lib/src/build/wrapped_logger.dart
+++ b/pkg/polymer/lib/src/build/wrapped_logger.dart
@@ -87,7 +87,7 @@ class WrappedLogger implements TransformLogger {
SourceSpan span) {
var data = {
'level': level.name,
- 'message': message,
+ 'message': const HtmlEscape().convert(message),
};
if (assetId != null) {
data['assetId'] = {
@@ -103,4 +103,4 @@ class WrappedLogger implements TransformLogger {
}
_logs.add(data);
}
-}
+}
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698