1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Set secure cookie for style switcher if required. (Bug #19625)

git-svn-id: file:///svn/phpbb/trunk@8875 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2008-09-18 14:17:39 +00:00
parent e2736dea20
commit 2fc6d5147a
3 changed files with 6 additions and 3 deletions

View File

@@ -32,6 +32,7 @@
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
var style_cookie = 'phpBBstyle';
var style_cookie_settings = '{A_COOKIE_SETTINGS}';
var onload_functions = new Array();
var onunload_functions = new Array();

View File

@@ -112,7 +112,7 @@ function createCookie(name, value, days)
expires = '';
}
document.cookie = name + '=' + value + expires + '; path=/';
document.cookie = name + '=' + value + expires + style_cookie_settings;
}
function readCookie(name)