]> code.citadel.org Git - citadel.git/blobdiff - webcit/auth.c
* Strip prepended '/webcit' in requested url's. This may allow us to handle
[citadel.git] / webcit / auth.c
index 423e3d4c2203491392976374c16959017b03bb46..9d941b87ee739e8a446c0f675f83af9bfb4adca4 100644 (file)
@@ -198,6 +198,9 @@ void do_welcome(void)
                safestrncpy(buf, "dotskip&room=_BASEROOM_", sizeof buf);
                set_preference("startpage", buf, 1);
        }
+       if (buf[0] == '/') {
+               strcpy(buf, &buf[1]);
+       }
        http_redirect(buf);
 }