From owner-freebsd-ports Sun Mar 1 11:00:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA16351 for freebsd-ports-outgoing; Sun, 1 Mar 1998 11:00:02 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA16345; Sun, 1 Mar 1998 11:00:01 -0800 (PST) (envelope-from gnats) Received: from serv.ccca.nctu.edu.tw (yssu@serv.CCCA.nctu.edu.tw [140.113.5.152]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA15627 for ; Sun, 1 Mar 1998 10:50:37 -0800 (PST) (envelope-from yssu@serv.ccca.nctu.edu.tw) Received: (from yssu@localhost) by serv.ccca.nctu.edu.tw (8.8.8/8.8.4) id CAA00543; Mon, 2 Mar 1998 02:50:35 +0800 (CST) Message-Id: <199803011850.CAA00543@serv.ccca.nctu.edu.tw> Date: Mon, 2 Mar 1998 02:50:35 +0800 (CST) From: yssu@CCCA.NCTU.edu.tw (Yen-Shuo Su) Reply-To: yssu@CCCA.NCTU.edu.tw (Yen-Shuo Su) To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/5891: Bug fix of cgiparse-0.8d Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5891 >Category: ports >Synopsis: Bug fix of cgiparse-0.8d >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 1 11:00:00 PST 1998 >Last-Modified: >Originator: Yen-Shuo Su >Organization: Campus Computer Communication Association >Release: FreeBSD 2.2.5-STABLE i386 >Environment: >Description: Bug in www/cgiparse ver 0.8d All value's of cgi post data will be parsed incorrectly, such like [&Request]->[=None], instead of correct value, [Request]->[None]. >How-To-Repeat: This will cause all cgi programs linked with cgiparse work incorrectly. >Fix: This fix has been sent to origin author. Maybe it will be fixed in next version. --- cgi.c.orig Mon Mar 2 02:42:37 1998 +++ cgi.c Mon Mar 2 02:45:33 1998 @@ -264,7 +264,7 @@ strncpy(d, e, c); d[c] = 0; - if (*pos == '\0') /* see if we are ending at a null */ + if (*pos != '\0') /* see if we are ending at a null */ *a = pos + 1; /* if not, point at next char */ else *a = pos; /* if so, then point at null */ >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message