summaryrefslogtreecommitdiff
path: root/modules/comment/comment.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.js')
-rw-r--r--modules/comment/comment.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.js b/modules/comment/comment.js
index f419a6f0d..96ecbaf5d 100644
--- a/modules/comment/comment.js
+++ b/modules/comment/comment.js
@@ -26,7 +26,7 @@ Drupal.comment.getCookie = function(name) {
if (end == -1) {
end = document.cookie.length;
}
- returnValue = unescape(document.cookie.substring(offset, end));
+ returnValue = decodeURIComponent(document.cookie.substring(offset, end).replace(/\+/g, '%20'));
}
}