Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r19012: LJSUP-8676: Create cookie ljuniq if ther...

Committer: pkornilov
LJSUP-8676: Create cookie ljuniq if there is no one
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2011-05-03 06:56:27 UTC (rev 19011)
+++ trunk/htdocs/js/basic.js	2011-05-03 07:50:17 UTC (rev 19012)
@@ -26,7 +26,8 @@
 		var path = options.path ? '; path=' + (options.path) : '',
 			domain = options.domain ? '; domain=' + (options.domain) : '',
 			secure = options.secure ? '; secure' : '';
-		document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
+		value = encodeURIComponent(value).replace(/%3A/g, ':'); //LJSUP-8676 
+		document.cookie = [name, '=', value, expires, path, domain, secure].join('');
 	} else { // only name given, get cookie
 		var cookieValue = null;
 		if (document.cookie && document.cookie != '') {

Tags: js, livejournal, lusever
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments