summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-11-15 11:37:02 +0000
committerJan Lehnardt <jan@apache.org>2010-11-15 11:37:02 +0000
commit03c6f4ae21200a1e1bbcf8a7a8bcc80a59d855d7 (patch)
tree54d51cfbf570a73c0c0b490926235c5e21f72b7c /share
parentba8d3e93235e1bcccdeeb03d130aaad2c9988237 (diff)
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
Diffstat (limited to 'share')
-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();