summaryrefslogtreecommitdiffstats
path: root/source/web
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-02-28 08:48:26 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-02-28 08:48:26 +0000
commite660b0b8d034c6cb9771601c64b952380d136ca1 (patch)
tree98ae8821d366669f2d830ce08705d77e65e08e89 /source/web
parent732d94b83e2dd14bad92c2f7947cf905b9128a2f (diff)
downloadsamba-e660b0b8d034c6cb9771601c64b952380d136ca1.tar.gz
samba-e660b0b8d034c6cb9771601c64b952380d136ca1.tar.xz
samba-e660b0b8d034c6cb9771601c64b952380d136ca1.zip
Fix HTTP error codes (patch by Vance Lankhaar)
Diffstat (limited to 'source/web')
-rw-r--r--source/web/cgi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/web/cgi.c b/source/web/cgi.c
index 8abc2f0bd5c..212c2884b60 100644
--- a/source/web/cgi.c
+++ b/source/web/cgi.c
@@ -455,11 +455,11 @@ void cgi_setup(const char *rootdir, int auth_required)
char *lang;
if (chdir(rootdir)) {
- cgi_setup_error("400 Server Error", "",
+ cgi_setup_error("500 Server Error", "",
"chdir failed - the server is not configured correctly");
}
- /* Handle the possability we might be running as non-root */
+ /* Handle the possibility we might be running as non-root */
sec_init();
if ((lang=getenv("HTTP_ACCEPT_LANGUAGE"))) {
@@ -478,7 +478,7 @@ void cgi_setup(const char *rootdir, int auth_required)
inetd_server = True;
if (!check_access(1, lp_hostsallow(-1), lp_hostsdeny(-1))) {
- cgi_setup_error("400 Server Error", "",
+ cgi_setup_error("403 Forbidden", "",
"Samba is configured to deny access from this client\n<br>Check your \"hosts allow\" and \"hosts deny\" options in smb.conf ");
}