From 891bd8c96063c35a05be9d3d7c8647e1fec8c23e Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Fri, 19 Nov 2010 13:26:04 +0000 Subject: Undo overzealous escaping. Patch by Gabriel Farrell. Closes COUCHDB-948. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036832 13f79535-47bb-0310-9956-ffa450edef68 --- THANKS | 1 + share/www/database.html | 2 +- share/www/document.html | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/THANKS b/THANKS index 4ba0ece8..13c0b8bf 100644 --- a/THANKS +++ b/THANKS @@ -73,5 +73,6 @@ suggesting improvements or submitting changes. Some of these people are: * Juuso Väänänen * Jeff Zellner * Benjamin Young + * Gabriel Farrell For a list of authors see the `AUTHORS` file. diff --git a/share/www/database.html b/share/www/database.html index f1d8dbd6..2802ad78 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -37,7 +37,7 @@ specific language governing permissions and limitations under the License. $(function() { if (page.redirecting) return; - $("h1 strong").html('' + page.db.name + ''); + $("h1 strong").text(page.db.name); var viewPath = page.viewName || "_all_docs"; if (viewPath != "_temp_view" && viewPath != "_design_docs") { $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + diff --git a/share/www/document.html b/share/www/document.html index ed4fd4ee..b6f42018 100644 --- a/share/www/document.html +++ b/share/www/document.html @@ -42,9 +42,9 @@ specific language governing permissions and limitations under the License. }); $(function() { - $("h1 a.dbname").text(encodeURIComponent(page.dbName)) + $("h1 a.dbname").text(page.dbName) .attr("href", "database.html?" + encodeURIComponent(page.db.name)); - $("h1 strong").text(encodeURIComponent(page.docId).replace(/%2[Ff]/, "/")); + $("h1 strong").text(page.docId); $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + "/" + encodeURIComponent(page.docId)); page.updateFieldListing(); -- cgit v1.2.3