From fa64e8f1123628156b75f5f8c17d8a061a9e71d3 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 15 Nov 2024 16:44:32 +0100 Subject: [PATCH] fix: change `>` char in favor of `.` in linked_drop_column.column_id Rails `'>'.to_json` produce `\u003e` because of an html entity escaping system to work around some bugs in browser (see https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support/json/encoding.rb#L43 ) But our waf dislike `\u003e` and reject xhr request with such char --- app/models/columns/linked_drop_down_column.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/columns/linked_drop_down_column.rb b/app/models/columns/linked_drop_down_column.rb index 6399137b0..c7611168e 100644 --- a/app/models/columns/linked_drop_down_column.rb +++ b/app/models/columns/linked_drop_down_column.rb @@ -43,7 +43,7 @@ class Columns::LinkedDropDownColumn < Columns::ChampColumn private - def column_id = "type_de_champ/#{stable_id}->#{path}" + def column_id = "type_de_champ/#{stable_id}.#{path}" def typed_value(champ) primary_value, secondary_value = unpack_values(champ.value)