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

Unified Diff: net/base/dir_header.html

Issue 1512013: Improve JsonDoubleQuoteT to do script escapes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
Index: net/base/dir_header.html
===================================================================
--- net/base/dir_header.html (revision 43592)
+++ net/base/dir_header.html (working copy)
@@ -60,7 +60,8 @@
function onListingParsingError() {
var box = document.getElementById("listingParsingErrorBox");
- box.innerHTML = box.innerHTML.replace("LOCATION", document.location + "?raw");
+ box.innerHTML = box.innerHTML.replace("LOCATION", encodeURI(document.location)
eroman 2010/04/06 01:43:12 nit: this seems like a separate issue, I suggest b
+ + "?raw");
box.style.display = "";
}
</script>
« base/json/string_escape.cc ('K') | « chrome/common/json_value_serializer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698