### Eclipse Workspace Patch 1.0 #P drupal-cvs Index: modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.543 diff -u -r1.543 comment.module --- modules/comment/comment.module 17 May 2007 20:57:19 -0000 1.543 +++ modules/comment/comment.module 19 May 2007 02:40:48 -0000 @@ -1687,7 +1687,7 @@ function comment_form_validate($form_values, $form, &$form_state) { foreach (array('name', 'homepage', 'mail') as $field) { //set cookie for 365 days - setrawcookie('comment_info_' . $field, rawurlencode($form_values[$field]), time() + 31536000); + setcookie('comment_info_'. $field, $form_values[$field], time() + 31536000); } comment_validate($form_values); } Index: modules/comment/comment.js =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.js,v retrieving revision 1.1 diff -u -r1.1 comment.js --- modules/comment/comment.js 17 May 2007 21:05:38 -0000 1.1 +++ modules/comment/comment.js 19 May 2007 02:40:47 -0000 @@ -26,7 +26,7 @@ if (end == -1) { end = document.cookie.length; } - returnValue = unescape(document.cookie.substring(offset, end)); + returnValue = decodeURIComponent(document.cookie.substring(offset, end).replace(/\+/g,'%20')); } }