summaryrefslogtreecommitdiff
path: root/www/w3c-httpd/patches/patch-ca
blob: 3d0e88ecc3cd7e6480d6a1d959bb5fab27c44453 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ca,v 1.2 1999/05/09 21:12:33 tron Exp $

--- Daemon/Implementation/CGIParse.c.orig	Wed Jun  3 12:38:15 1998
+++ Daemon/Implementation/CGIParse.c	Wed Jun  3 12:38:41 1998
@@ -293,7 +293,8 @@
 	*cur = 0;
 
 	if (init) {
-	    printf("QUERY_STRING='%s'; export QUERY_STRING\n", query_string);
+	    printf("QUERY_STRING='%s'; export QUERY_STRING\n",
+		sh_escape(query_string) );
 	    exit(0);
 	}
     }