Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd PR/48810 use cgi handler for index files
details: https://anonhg.NetBSD.org/src/rev/ca656b52fa44
branches: trunk
changeset: 330132:ca656b52fa44
user: shm <shm%NetBSD.org@localhost>
date: Tue Jun 24 07:23:59 2014 +0000
description:
PR/48810 use cgi handler for index files
OK mrg@ martin@
diffstat:
libexec/httpd/cgi-bozo.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 7b9188b7a9c6 -r ca656b52fa44 libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c Tue Jun 24 05:07:31 2014 +0000
+++ b/libexec/httpd/cgi-bozo.c Tue Jun 24 07:23:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgi-bozo.c,v 1.24 2014/01/02 08:21:38 mrg Exp $ */
+/* $NetBSD: cgi-bozo.c,v 1.25 2014/06/24 07:23:59 shm Exp $ */
/* $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $ */
@@ -259,7 +259,11 @@
if (!httpd->cgibin && !httpd->process_cgi)
return 0;
- uri = request->hr_oldfile ? request->hr_oldfile : request->hr_file;
+ if (request->hr_oldfile && strcmp(request->hr_oldfile, "/") != 0)
+ uri = request->hr_oldfile;
+ else
+ uri = request->hr_file;
+
if (uri[0] == '/')
file = bozostrdup(httpd, uri);
else
Home |
Main Index |
Thread Index |
Old Index