X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=stats.c;fp=stats.c;h=59b42a574d4315634684d60bb525795d9d8663d1;hp=7fa6894d0e576eff7817fb47742ef3ce2d49516f;hb=79425efea806599b611de4e3b25bdc36516e7522;hpb=f67f09be8979050e73855b6551da83ca48dde950 diff --git a/stats.c b/stats.c index 7fa6894..59b42a5 100644 --- a/stats.c +++ b/stats.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "cleanup.h" #include "hash.h" @@ -139,6 +140,7 @@ void dofindpath(struct onak_dbctx *dbctx, int rec; int pathnum; char *uid; + char buf[1024]; /* * Make sure the keys we have and want are in the cache. @@ -212,7 +214,8 @@ void dofindpath(struct onak_dbctx *dbctx, curkey->keyid, curkey->keyid, curkey->keyid, - txt2html(uid), + html_escape(uid, strlen(uid), + buf, sizeof(buf)), (curkey->keyid == want) ? "" : " signs"); } else {