summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-11-15 11:37:46 +0000
committerJan Lehnardt <jan@apache.org>2010-11-15 11:37:46 +0000
commit10423ffe29a22f85df08b5391693d8dffff54945 (patch)
tree2a8e8f7f4227def26aee11a64f28164ff415d97c
parent4b3568a58d37aa48c4a2027a21a34b38782aeec7 (diff)
Correct display for docs with %2f in their ID. Closes COUCHDB-948.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1035230 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--share/www/document.html2
1 files changed, 1 insertions, 1 deletions
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();