On Thu, 08 Sep 2022 17:04:31 +0200 Maximilian Stein <m...@steiny.biz> wrote:
To me, this seemed like a typo, so I simply removed "h " in
labels_helper.rb:250. This fixed the issue for me, as far as I can
tell.

This might not be a typo. It has been added in the following upstream commit:
https://gitlab.com/gitlab-org/gitlab/-/commit/513066c360bcfaa8d5cd40795f7d98d46b9e1e44
(I could not find the original merge request discussion, its access might be 
restricted)

An alternative fix is to replace:
#{"style=\"background-color: #{h bg_color}\"" if bg_color}
with:
#{"style=\"background-color: #{html_escape bg_color}\"" if bg_color}

I think "h" is supposed to be a method alias for "html_escape", but is not 
loaded due to something missing in our setup.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to