From 9101d43b0f1e3d7f6ea902d8b52beaa0e539f8f1 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Sat, 16 Apr 2011 20:41:19 +0000 Subject: Fix display issue with documents that have single or double quotes in their id. Closes COUCHDB-1111 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1094050 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.browse.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'share/www') diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 6b3c979c..56435ae4 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -682,10 +682,12 @@ key = $.futon.formatJSON(row.key, {indent: 0, linesep: ""}); } if (row.id) { - $("
" + - "ID: " + $.futon.escape(row.id) + "
") - .find("strong").text(key).end() + key = key.replace(/\\"/, '"'); + var rowlink = encodeURIComponent(db.name) + + "/" + $.couch.encodeDocId(row.id); + $("" + + $.futon.escape(key) + "
" + + "ID: " + $.futon.escape(row.id) + "
") .appendTo(tr); } else { $("") -- cgit v1.2.3