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

Unified Diff: chrome/browser/resources/print_preview/search/destination_search.js

Issue 1013853005: Escape printer and sender name for the printer invite banner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/search/destination_search.js
diff --git a/chrome/browser/resources/print_preview/search/destination_search.js b/chrome/browser/resources/print_preview/search/destination_search.js
index 7233e3b8ae210f2b727edd1067133e43e928d03b..601022408dffeaa331b6b3118fda27e490c768a7 100644
--- a/chrome/browser/resources/print_preview/search/destination_search.js
+++ b/chrome/browser/resources/print_preview/search/destination_search.js
@@ -481,14 +481,14 @@ cr.define('print_preview', function() {
if (invitation.asGroupManager) {
invitationText = loadTimeData.getStringF(
'groupPrinterSharingInviteText',
- invitation.sender,
- invitation.destination.displayName,
- invitation.receiver);
+ HTMLEscape(invitation.sender),
+ HTMLEscape(invitation.destination.displayName),
+ HTMLEscape(invitation.receiver));
} else {
invitationText = loadTimeData.getStringF(
'printerSharingInviteText',
- invitation.sender,
- invitation.destination.displayName);
+ HTMLEscape(invitation.sender),
+ HTMLEscape(invitation.destination.displayName));
}
this.getChildElement('.invitation-text').innerHTML = invitationText;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698