Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-20 23:00:00 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-20 23:00:00 +0400
commit36869248ba737fa8b5a56ef40ba9389936d4a3de (patch)
tree3cedcf42b070eade56acfb196d84d53280a7e0eb /js
parent4eccbf9da13a6eeb950c0d57aea722a10bde8a84 (diff)
fix getCookie() implementation; thanks Ralf
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 38143d091f..337642d7fa 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -368,10 +368,8 @@ if (!this.Piwik) {
/*
* Get cookie value
*/
- function getCookie(cookieName, path, domain) {
- var cookiePattern = new RegExp('(^|;)[ ]*' + cookieName + '=([^;]*)' +
- (path ? '(;[ ]*expires=[^;]*)?;[ ]*path=' + path.replace('/', '\\/') + '' : '') +
- (domain ? ';[ ]*domain=' + domain + '(;|$)' : '')),
+ function getCookie(cookieName) {
+ var cookiePattern = new RegExp('(^|;)[ ]*' + cookieName + '=([^;]*)'),
cookieMatch = cookiePattern.exec(documentAlias.cookie);