chiark / gitweb /
Empty back= should be treated as if absent
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 20:55:36 +0000 (21:55 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 18 May 2008 20:55:36 +0000 (21:55 +0100)
server/actions.c

index 1372733..2468b77 100644 (file)
@@ -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);