From 6633c129a271b45dab908816293668e4077f17fc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 13 Aug 2013 09:51:56 +0200 Subject: make referer information in PNG file optional and configurable --- cqrlogo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cqrlogo.c') diff --git a/cqrlogo.c b/cqrlogo.c index 9e4521b..9ebad37 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -68,7 +68,9 @@ int generate_png (struct bitmap_t *bitmap, const char *uri) { png_text *pngtext = NULL; pngtext = add_png_text(pngtext, &textcount, "comment", "QR-Code created by cqrlogo - https://github.com/eworm-de/cqrlogo"); +# if PNG_ENABLE_TEXT_REFERER pngtext = add_png_text(pngtext, &textcount, "referer", (char *)uri); +# endif # if PNG_ENABLE_TEXT_VERSIONS # define VERSIONSTR VERSION " (" __DATE__ ", " __TIME__ ")" -- cgit v1.2.3-54-g00ecf