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

Attachment: pgpqJhiU1pFDU.pgp
Description: OpenPGP digital signature

Reply via email to