From 387dd4a48bd07abf8d375b457be117fbbb6778d3 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sat, 14 Jan 2012 14:50:23 -0800 Subject: [PATCH] The value of all href attributes is escaped. --- node/utils/ExportHtml.js | 2 +- static/js/domline.js | 2 +- static/js/domline_client.js | 2 +- static/js/pad_utils.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/node/utils/ExportHtml.js b/node/utils/ExportHtml.js index ef85d51f..c699c411 100644 --- a/node/utils/ExportHtml.js +++ b/node/utils/ExportHtml.js @@ -292,7 +292,7 @@ function getHTMLFromAtext(pad, atext) var url = urlData[1]; var urlLength = url.length; processNextChars(startIndex - idx); - assem.append(''); + assem.append(''); processNextChars(urlLength); assem.append(''); }); diff --git a/static/js/domline.js b/static/js/domline.js index b0fbcc8c..3456419c 100644 --- a/static/js/domline.js +++ b/static/js/domline.js @@ -162,7 +162,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) { href = "http://"+href; } - extraOpenTags = extraOpenTags + ''; + extraOpenTags = extraOpenTags + ''; extraCloseTags = '' + extraCloseTags; } if (simpleTags) diff --git a/static/js/domline_client.js b/static/js/domline_client.js index a152412c..cac753b9 100644 --- a/static/js/domline_client.js +++ b/static/js/domline_client.js @@ -158,7 +158,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) { if (href) { - extraOpenTags = extraOpenTags + ''; + extraOpenTags = extraOpenTags + ''; extraCloseTags = '' + extraCloseTags; } if (simpleTags) diff --git a/static/js/pad_utils.js b/static/js/pad_utils.js index bd028485..9083fa9b 100644 --- a/static/js/pad_utils.js +++ b/static/js/pad_utils.js @@ -187,7 +187,7 @@ var padutils = { var startIndex = urls[j][0]; var href = urls[j][1]; advanceTo(startIndex); - pieces.push(''); + pieces.push(''); advanceTo(startIndex + href.length); pieces.push(''); }