diff options
author | Jan Lehnardt <jan@apache.org> | 2010-11-15 11:37:46 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2010-11-15 11:37:46 +0000 |
commit | 10423ffe29a22f85df08b5391693d8dffff54945 (patch) | |
tree | 2a8e8f7f4227def26aee11a64f28164ff415d97c /share/www/document.html | |
parent | 4b3568a58d37aa48c4a2027a21a34b38782aeec7 (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
Diffstat (limited to 'share/www/document.html')
-rw-r--r-- | share/www/document.html | 2 |
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(); |