Merge 30ea333246ce15950ea70c0362b996eb3b0f95f7 into 70f1b6500861970f8b9e52fbfe52a1796350ea69

This commit is contained in:
GenericMale 2025-01-26 21:45:49 +01:00 committed by GitHub
commit 996fc29983
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View File

@ -10,10 +10,12 @@
<th>{{ _('Value') }}</th>{{- '' -}} <th>{{ _('Value') }}</th>{{- '' -}}
</tr> </tr>
{%- for cookie in cookies -%} {%- for cookie in cookies -%}
{% if cookie in preferences.key_value_settings %}
<tr>{{- '' -}} <tr>{{- '' -}}
<td>{{ cookie }}</td>{{- '' -}} <td>{{ cookie }}</td>{{- '' -}}
<td>{{ cookies[cookie] }}</td>{{- '' -}} <td>{{ cookies[cookie] }}</td>{{- '' -}}
</tr> </tr>
{% endif %}
{%- endfor -%} {%- endfor -%}
</table> </table>
{%- else -%} {%- else -%}

View File

@ -1289,6 +1289,7 @@ def favicon():
def clear_cookies(): def clear_cookies():
resp = make_response(redirect(url_for('index', _external=True))) resp = make_response(redirect(url_for('index', _external=True)))
for cookie_name in request.cookies: for cookie_name in request.cookies:
if cookie_name in request.preferences.key_value_settings:
resp.delete_cookie(cookie_name) resp.delete_cookie(cookie_name)
return resp return resp