Skip to content

Commit fa0096b

Browse files
committed
fix: aligned cookie name
1 parent af6a4c4 commit fa0096b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

phpmyfaq/assets/src/utils/cookie-consent.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ describe('cookie-consent', () => {
2727
autoShow: true,
2828
mode: 'opt-in',
2929
cookie: {
30-
name: 'phpmyfaq_cc_cookie',
30+
domain: 'localhost',
31+
name: 'pmf_cc_cookie',
3132
expiresAfterDays: 182,
33+
sameSite: 'Strict',
3234
},
3335
guiOptions: {
3436
consentModal: {

phpmyfaq/assets/src/utils/cookie-consent.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ cc.run({
2121
// disablePageInteraction: true,
2222
// hideFromBots: true,
2323
mode: 'opt-in',
24-
// revision: 0,
2524

2625
cookie: {
27-
name: 'phpmyfaq_cc_cookie',
28-
// domain: location.hostname,
29-
// path: '/',
30-
// sameSite: "Lax",
26+
name: 'pmf_cc_cookie',
27+
domain: location.hostname,
28+
sameSite: 'Strict',
3129
expiresAfterDays: 182,
3230
},
3331
guiOptions: {

phpmyfaq/src/Bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
}
180180

181181
//
182-
// Connect to LDAP server, when LDAP support is enabled
182+
// Connect to the LDAP server when LDAP support is enabled
183183
//
184184
if ($faqConfig->isLdapActive() && file_exists(PMF_CONFIG_DIR . '/ldap.php') && extension_loaded('ldap')) {
185185
$ldapConfig = new LdapConfiguration(PMF_CONFIG_DIR . '/ldap.php');

0 commit comments

Comments
 (0)