diff options
author | Lars Hjemli | 2008-04-08 21:11:36 +0200 |
---|---|---|
committer | Lars Hjemli | 2008-04-08 21:11:36 +0200 |
commit | e87e89633383b8b75c68c98be3e0c14212109de2 (patch) | |
tree | f57e131ab854b58023387aee8efc0e4ee54653b5 /cgit.c | |
parent | 20a33548b9a87a6eb23162ee5d137daa46d78613 (diff) | |
download | cgit-e87e89633383b8b75c68c98be3e0c14212109de2.tar.gz cgit-e87e89633383b8b75c68c98be3e0c14212109de2.tar.bz2 cgit-e87e89633383b8b75c68c98be3e0c14212109de2.zip |
Move cgit_parse_query() from parsing.c to html.c as http_parse_querystring()
This is a generic http-function.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,7 @@ | |||
10 | #include "cache.h" | 10 | #include "cache.h" |
11 | #include "cmd.h" | 11 | #include "cmd.h" |
12 | #include "configfile.h" | 12 | #include "configfile.h" |
13 | #include "html.h" | ||
13 | #include "ui-shared.h" | 14 | #include "ui-shared.h" |
14 | 15 | ||
15 | const char *cgit_version = CGIT_VERSION; | 16 | const char *cgit_version = CGIT_VERSION; |
@@ -444,7 +445,7 @@ int main(int argc, const char **argv) | |||
444 | if (getenv("QUERY_STRING")) | 445 | if (getenv("QUERY_STRING")) |
445 | ctx.qry.raw = xstrdup(getenv("QUERY_STRING")); | 446 | ctx.qry.raw = xstrdup(getenv("QUERY_STRING")); |
446 | cgit_parse_args(argc, argv); | 447 | cgit_parse_args(argc, argv); |
447 | cgit_parse_query(ctx.qry.raw, querystring_cb); | 448 | http_parse_querystring(ctx.qry.raw, querystring_cb); |
448 | if (!cgit_prepare_cache(&item)) | 449 | if (!cgit_prepare_cache(&item)) |
449 | return 0; | 450 | return 0; |
450 | if (ctx.cfg.nocache) { | 451 | if (ctx.cfg.nocache) { |