From owner-freebsd-www Mon Sep 30 9:30: 7 2002 Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C68E37B401 for ; Mon, 30 Sep 2002 09:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 815E743E75 for ; Mon, 30 Sep 2002 09:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8UGU3Co007235 for ; Mon, 30 Sep 2002 09:30:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8UGU3IF007234; Mon, 30 Sep 2002 09:30:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0491D37B401 for ; Mon, 30 Sep 2002 09:29:54 -0700 (PDT) Received: from osdn.org.ua (external.osdn.org.ua [212.40.34.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BA9F43E42 for ; Mon, 30 Sep 2002 09:29:49 -0700 (PDT) (envelope-from never@osdn.org.ua) Received: (from never@localhost) by osdn.org.ua (8.11.6/8.11.6) id g8UGThp32546; Mon, 30 Sep 2002 19:29:43 +0300 (EEST) (envelope-from never) Message-Id: <200209301629.g8UGThp32546@osdn.org.ua> Date: Mon, 30 Sep 2002 19:29:43 +0300 (EEST) From: Alexandr Kovalenko Reply-To: Alexandr Kovalenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: www/43530: [PATCH] Add also HTTP_X_FORWARDED_FOR header inclusing in cgi/dosendpr.cgi Sender: owner-freebsd-www@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43530 >Category: www >Synopsis: [PATCH] Add also HTTP_X_FORWARDED_FOR header inclusing in cgi/dosendpr.cgi >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Sep 30 09:30:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Alexandr Kovalenko >Release: FreeBSD 4.4-RELEASE-p26 i386 >Organization: Net.Style >Environment: System: FreeBSD xxx.zzz.yyy.com 4.4-RELEASE-p26 FreeBSD 4.4-RELEASE-p26 #0: Tue Aug 27 20:03:50 EEST 2002 root@xxx.zzz.yyy.com:/usr/obj/usr/src/sys/kurush i386 >Description: dosendpr.cgi only records requesting machine's IP, but if this machine is proxy, we won't be able to track down original poster. Appended patch resolves this problem. >How-To-Repeat: Look at dosendpr.cgi code. >Fix: Index: dosendpr.cgi =================================================================== RCS file: /usr/home/ncvs/www/en/cgi/dosendpr.cgi,v retrieving revision 1.8 diff -u -r1.8 dosendpr.cgi --- dosendpr.cgi 2002/05/20 07:14:41 1.8 +++ dosendpr.cgi 2002/09/30 16:22:40 @@ -72,6 +72,7 @@ "From: $cgi_data{'originator'} <$cgi_data{'email'}>\n" . "Subject: $cgi_data{'synopsis'}\n" . "X-Originating-IP: $ENV{'REMOTE_ADDR'}\n" . + "X-Originating-Proxy-IP: $ENV{'HTTP_X_FORWARDED_FOR'}\n" . "X-Send-Pr-Version: www-1.0\n\n" . ">Submitter-Id:\t$cgi_data{'submitterid'}\n" . ">Originator:\t$cgi_data{'originator'}\n" . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-www" in the body of the message