summaryrefslogtreecommitdiff
path: root/share/www/document.html
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2010-11-02 22:16:18 +0000
committerJan Lehnardt <jan@apache.org>2010-11-02 22:16:18 +0000
commit871e2617e32fb305b9a4e16e560e270a7ef84ffc (patch)
tree8c233b348045a46484c7405590900d1afdfb5a6c /share/www/document.html
parentb49ac86e9ac820ff327d132e418f0df5e0f772c8 (diff)
Escape URL and cookie input.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1030261 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/document.html')
-rw-r--r--share/www/document.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/document.html b/share/www/document.html
index b6f42018..ee0f3475 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(page.dbName)
+ $("h1 a.dbname").text(encodeURIComponent(page.dbName))
.attr("href", "database.html?" + encodeURIComponent(page.db.name));
- $("h1 strong").text(page.docId);
+ $("h1 strong").text(encodeURIComponent(page.docId));
$("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) +
"/" + encodeURIComponent(page.docId));
page.updateFieldListing();