X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/f2d306b4d82e76180b747a89fa7fd99cd5d253bc..9d61799376c6d4a51b5386ddb432693ad31129a6:/server/actions.c 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);