From 04aa2c4f1affbc96f5de4ad492e9dce89f6209e1 Mon Sep 17 00:00:00 2001 Message-Id: <04aa2c4f1affbc96f5de4ad492e9dce89f6209e1.1715568977.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 18 May 2008 21:55:36 +0100 Subject: [PATCH] Empty back= should be treated as if absent Organization: Straylight/Edgeware From: Richard Kettlewell --- server/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/actions.c b/server/actions.c index 1372733..2468b77 100644 --- a/server/actions.c +++ b/server/actions.c @@ -33,7 +33,7 @@ static void redirect(const char *url) { /* By default use the 'back' argument */ if(!url) url = cgi_get("back"); - if(url) { + if(url && *url) { if(strncmp(url, "http", 4)) /* If the target is not a full URL assume it's the action */ url = cgi_makeurl(config->url, "action", url, (char *)0); -- [mdw]