View Issue Details

IDProjectCategoryView StatusLast Update
0037007mantisbtcode cleanuppublic2026-04-21 09:07
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0037007: Remove unnecessary global variable $g_cookie_secure_flag_enabled
Description

With the introduction of http_is_https_protocol() function in MantisBT master f39ad8c9 (see 0014333), this global variable is not really needed anymore, as we can simply call the function whenever we need to set a cookie's secure flag.

Additional Information

Suggested by @raspopov in https://github.com/mantisbt/mantisbt/pull/2201#issuecomment-4201475022

TagsNo tags attached.

Relationships

related to 0014333 closeddregad mantis bt switches to https from http 
related to 0036819 resolveddregad Secure cookies are rejected by the browser 

Activities

Related Changesets

MantisBT: master 13bfed65

2026-04-21 09:07

dregad

Committer: community


Details Diff
Remove $g_cookie_secure_flag_enabled global var

With the introduction of http_is_https_protocol() function [1], this
global variable is not really needed anymore, as we can simply call
the function whenever we need to set a cookie's secure flag.

Fixes 0037007 (PR https://github.com/mantisbt/mantisbt/pull/2202)

[1]: see commit f39ad8c9816fefd36747630d25b7355265eaacc5
Affected Issues
0037007
mod - core/gpc_api.php Diff File
mod - core/session_api.php Diff File