From: Lars Hjemli Date: Thu, 20 Aug 2009 08:07:51 +0000 (+0200) Subject: cgit.c: fix caching keyed on PATH_INFO with no QUERY_STRING X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/0374a76ce10e50a803df21288888edd4d26a14a9?hp=0374a76ce10e50a803df21288888edd4d26a14a9 cgit.c: fix caching keyed on PATH_INFO with no QUERY_STRING When generating a hash for caching, ctx.qry.raw is used as key. And since cgit_parse_url() zero-terminates it's argument (after the repo path), ctx.qry.raw must xstrdup(ctx.qry.url). Signed-off-by: Lars Hjemli ---