X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=stats.c;h=59b42a574d4315634684d60bb525795d9d8663d1;hb=HEAD;hp=91c916688f4473b88005147424238f2d78871b34;hpb=c063c72b0e63842f5466e0983183c98d4e05c54e;p=onak.git diff --git a/stats.c b/stats.c index 91c9166..59b42a5 100644 --- a/stats.c +++ b/stats.c @@ -19,11 +19,12 @@ #include #include #include +#include #include "cleanup.h" -#include "getcgi.h" #include "hash.h" #include "keydb.h" +#include "keyindex.h" #include "ll.h" #include "stats.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 {