cookie.lang may have a legitimate invalid value #2216

Closed
opened 2026-10-05 01:10:03 +02:00 by adam · 0 comments
Owner

Following #2541 with its quick fix for 16.x, we need a more "in depth" fix for master.

The $_COOKIE['lang'] might have a value coming from any other web application (including other instances of Piwigo) on the same host. We should use Piwigo functions pwg_get_cookie_var and pwg_set_cookie_var to be more restrictive on the accepted path of the cookie.

Following #2541 with its quick fix for 16.x, we need a more "in depth" fix for master. The `$_COOKIE['lang']` might have a value coming from any other web application (including other instances of Piwigo) on the same host. We should use Piwigo functions `pwg_get_cookie_var` and `pwg_set_cookie_var` to be more restrictive on the accepted path of the cookie. <!-- github-sync-id:4371924100 -->
adam closed this issue 2026-10-05 01:10:03 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2216