kairosagency/phpqrcode — pull request #1 by luniki (2013-02-06 10:54:50+00:00)
Title: Fix formatting of CSS-style colors in SVG output

When using the default colors for encoding QR codes as SVG, the default value of "fore_color" is 0 which results in:

Several browsers (Opera, FF) comprehend this anyway, but Google Chrome does not.

Instead of using #dechex to format the RGB colors, one could use sprintf. See my fix for an example.