From: Richard Kettlewell Date: Sun, 18 May 2008 20:55:36 +0000 (+0100) Subject: Empty back= should be treated as if absent X-Git-Tag: 4.0~76^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/04aa2c4f1affbc96f5de4ad492e9dce89f6209e1 Empty back= should be treated as if absent --- 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);