From 01d4be82c4af7606ed10625bc81489246fe9e0d0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 12 Mar 2011 22:38:00 +0000 Subject: fix about:licence svn path=/trunk/netsurf/; revision=11996 --- content/fetchers/about.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'content/fetchers') diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 9def04a2c..046c28a63 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -139,6 +139,18 @@ static bool fetch_about_credits_handler(struct fetch_about_context *ctx) return true; } +static bool fetch_about_licence_handler(struct fetch_about_context *ctx) +{ + /* content is going to return redirect */ + fetch_set_http_code(ctx->fetchh, 302); + + fetch_about_send_callback(FETCH_REDIRECT, ctx, "resource:licence.html", + 0, FETCH_ERROR_NO_ERROR); + + return true; +} + + static bool fetch_about_config_handler(struct fetch_about_context *ctx) { char buffer[1024]; @@ -261,6 +273,7 @@ struct about_handlers { struct about_handlers about_handler_list[] = { { "credits", fetch_about_credits_handler }, + { "licence", fetch_about_licence_handler }, { "config", fetch_about_config_handler }, { "Choices", fetch_about_choices_handler }, { "blank", fetch_about_blank_handler } /* The default */ -- cgit v1.2.3