Просмотр исходного кода

Simplify logout_redirect_url templating and make it safer

Using `to_json` to make it safer.

Judging by the code here 0b24d33c64/src/Lifecycle.ts (L1026-L1032)
it doesn't seem like it leaving `logout_redirect_url` empty will hurt, so this patch removes the `if` block.
pull/3903/head
Slavi Pantaleev 1 год назад
committed by GitHub
Родитель
Сommit
1fc4d175ac
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 1 добавлений и 3 удалений
  1. +1
    -3
      roles/custom/matrix-client-element/templates/config.json.j2

+ 1
- 3
roles/custom/matrix-client-element/templates/config.json.j2 Просмотреть файл

@@ -40,9 +40,7 @@
{% if matrix_client_element_location_sharing_enabled %} {% if matrix_client_element_location_sharing_enabled %}
"map_style_url": {{ matrix_client_element_map_style_url | to_json }}, "map_style_url": {{ matrix_client_element_map_style_url | to_json }},
{% endif %} {% endif %}
{% if matrix_client_element_logout_redirect_url != '' %}
"logout_redirect_url": "{{ matrix_client_element_logout_redirect_url }}",
{% endif %}
"logout_redirect_url": {{ matrix_client_element_logout_redirect_url | to_json }},
"branding": { "branding": {
"auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }}, "auth_footer_links": {{ matrix_client_element_branding_auth_footer_links | to_json }},
"auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }}, "auth_header_logo_url": {{ matrix_client_element_branding_auth_header_logo_url | to_json }},


Загрузка…
Отмена
Сохранить