mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 18:33:56 +08:00
Update luci-base.patch
This commit is contained in:
1 parent
bc24a0656c
commit
accbfee648
1 file changed
+1
-1
@@ -45,7 +45,7 @@
|
||||
cookie_secure = (http.getenv('HTTPS') == 'on') ? '; secure' : '';
|
||||
|
||||
- http.header('Set-Cookie', `${cookie_name}=${session.sid}; path=${build_url()}; SameSite=strict; HttpOnly${cookie_secure}`);
|
||||
+ let cookie_p = uci.get('wizard', 'default', 'cookie_p');
|
||||
+ let cookie_p = uci.get('luci', 'main', 'persistent_cookies');
|
||||
+ if (cookie_p == '0') {
|
||||
+ http.header('Set-Cookie', `${cookie_name}=${session.sid}; path=${build_url()}; SameSite=strict; HttpOnly${cookie_secure}`);
|
||||
+ } else {
|
||||
|
||||
Reference in new issue
Block a user