From 03c6f4ae21200a1e1bbcf8a7a8bcc80a59d855d7 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Mon, 15 Nov 2010 11:37:02 +0000 Subject: Correct display for docs with %2f in their ID. Closes COUCHDB-948. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1035229 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/document.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/www/document.html b/share/www/document.html index ee0f3475..ed4fd4ee 100644 --- a/share/www/document.html +++ b/share/www/document.html @@ -44,7 +44,7 @@ specific language governing permissions and limitations under the License. $(function() { $("h1 a.dbname").text(encodeURIComponent(page.dbName)) .attr("href", "database.html?" + encodeURIComponent(page.db.name)); - $("h1 strong").text(encodeURIComponent(page.docId)); + $("h1 strong").text(encodeURIComponent(page.docId).replace(/%2[Ff]/, "/")); $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + "/" + encodeURIComponent(page.docId)); page.updateFieldListing(); -- cgit v1.2.3