This is an automated email from the ASF dual-hosted git repository.
tvand pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
The following commit(s) were added to refs/heads/master by this push:
new c493ae79 Potential fix for code scanning alert no. 124: Failure to use
secure cookies
c493ae79 is described below
commit c493ae7972d833776f7fd31eaf48e304336437d6
Author: Thomas Vandahl <[email protected]>
AuthorDate: Fri Sep 4 23:23:09 2026 +0200
Potential fix for code scanning alert no. 124: Failure to use secure cookies
Co-authored-by: Copilot Autofix powered by AI
<62310815+github-advanced-security[bot]@users.noreply.github.com>
---
.../java/org/apache/commons/jcs4/jcache/extras/web/JCacheFilter.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/commons-jcs4-jcache-extras/src/main/java/org/apache/commons/jcs4/jcache/extras/web/JCacheFilter.java
b/commons-jcs4-jcache-extras/src/main/java/org/apache/commons/jcs4/jcache/extras/web/JCacheFilter.java
index dbc9dc3b..7905a200 100644
---
a/commons-jcs4-jcache-extras/src/main/java/org/apache/commons/jcs4/jcache/extras/web/JCacheFilter.java
+++
b/commons-jcs4-jcache-extras/src/main/java/org/apache/commons/jcs4/jcache/extras/web/JCacheFilter.java
@@ -243,6 +243,7 @@ public class JCacheFilter implements Filter
}
for (final Cookie c : page.cookies)
{
+ c.setSecure(true);
httpServletResponse.addCookie(c);
}
for (final Map.Entry<String, List<Serializable>> entry :
page.headers.entrySet())