From 18ab587d642cadbf426d043f94432260791fe85b Mon Sep 17 00:00:00 2001 From: Thomas Mair Date: Tue, 19 Aug 2014 09:43:15 +0200 Subject: [PATCH 1/2] Encode string values as strings. --- angular-cookie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-cookie.js b/angular-cookie.js index 0c97e35..cbf59ec 100644 --- a/angular-cookie.js +++ b/angular-cookie.js @@ -26,7 +26,7 @@ factory('ipCookie', ['$document', if (value !== undefined) { // we are setting value - value = typeof value === 'object' ? JSON.stringify(value) : String(value); + value = typeof value === 'object' ? JSON.stringify(value) : JSON.stringify(String(value)); if (typeof options.expires === 'number') { expiresFor = options.expires; From 7a4a57b97a121cdd1d90c56a314c51058d96e84e Mon Sep 17 00:00:00 2001 From: Thomas Mair Date: Tue, 19 Aug 2014 10:34:50 +0200 Subject: [PATCH 2/2] Updated version --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 912b627..98fc548 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "angular-cookie", "main": "angular-cookie.js", - "version": "4.0.1", + "version": "4.1.0", "homepage": "https://github.com/ivpusic/angular-cookie", "authors": [ "ivpusic "