- if (ctx->env.http_referer && strlen(ctx->env.http_referer) > 0) {
- html("Status: 302 Redirect\n");
- html("Cache-Control: no-cache, no-store\n");
- htmlf("Location: %s\n", ctx->env.http_referer);
- } else {
- html("Status: 501 Missing Referer\n");
- html("Cache-Control: no-cache, no-store\n\n");
- exit(0);
- }
-
- open_auth_filter(ctx, "authenticate-post");