diff options
author | Christopher Brannon <chris@the-brannons.com> | 2021-10-14 18:38:53 -0700 |
---|---|---|
committer | Christopher Brannon <chris@the-brannons.com> | 2021-10-14 18:39:04 -0700 |
commit | 1c58a06e4799ad166aba0341ff52cb38dde527cc (patch) | |
tree | 9a93fdba7ccd1f9bd2f8d02a5c52124f913dfff9 | |
parent | 0d556243b8aba50e0bc638f0669702bf9f211641 (diff) | |
download | nawp-master.tar nawp-master.tar.gz nawp-master.tar.bz2 nawp-master.tar.lz nawp-master.tar.xz nawp-master.tar.zst nawp-master.zip |
Commit 0d556243b8aba50e0bc638f0669702bf9f211641 wasn't actually a fix.
-rwxr-xr-x | nawp.scm | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -346,8 +346,14 @@ (print "If this program is called without arguments, it operates in CGI mode.\n"))) (define (main) + (when + (and + (get-environment-variable "GATEWAY_INTERFACE") + (not (null? (command-line-arguments)))) + (http-fail 400 "Bad request.") + (exit 1)) (match (command-line-arguments) - (() (when (get-environment-variable "GATEWAY_INTERFACE") (cgi-main))) + (() (cgi-main)) ((adduser username display-name) (add-user username (read-password "Password: ") display-name)) (everything-else (help)))) |