[DRE-maint] Bug#1019403: gitlab: failed to fetch comments in issue (500 Internal Server Error)

Jakob Haufe sur5r at debian.org
Wed Oct 19 09:40:34 BST 2022


> 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.

This fails for me the same way as plain "h". After digging deeper, I
found "h" is ERB::Util.h, so changing the line to:

#{"style=\"background-color: #{ERB::Util.h bg_color}\"" if bg_color}

works for me.

-- 
ceterum censeo microsoftem esse delendam.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221019/49d56311/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list