From owner-freebsd-www@FreeBSD.ORG Wed Jul 13 17:50:14 2005 Return-Path: X-Original-To: freebsd-www@hub.freebsd.org 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 92E4716A41C for ; Wed, 13 Jul 2005 17:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 272FE43D46 for ; Wed, 13 Jul 2005 17:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6DHoD5I094085 for ; Wed, 13 Jul 2005 17:50:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6DHoDnx094084; Wed, 13 Jul 2005 17:50:13 GMT (envelope-from gnats) Resent-Date: Wed, 13 Jul 2005 17:50:13 GMT Resent-Message-Id: <200507131750.j6DHoDnx094084@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-www@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Marius Nuennerich" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CCEF16A41C for ; Wed, 13 Jul 2005 17:45:42 +0000 (GMT) (envelope-from marius.nuennerich@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D568A43D46 for ; Wed, 13 Jul 2005 17:45:41 +0000 (GMT) (envelope-from marius.nuennerich@gmx.net) Received: (qmail invoked by alias); 13 Jul 2005 17:45:39 -0000 Received: from p5083A8B0.dip0.t-ipconnect.de (EHLO olaf.hackerzberg.local) [80.131.168.176] by mail.gmx.net (mp026) with SMTP; 13 Jul 2005 19:45:39 +0200 Message-Id: <1121276739.0@olaf.hackerzberg.local> Date: Wed, 13 Jul 2005 19:45:39 +0200 From: "Marius Nuennerich" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.6 Cc: marius.nuennerich@gmx.net Subject: www/83397: Improvement to the GNATS webinterface X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2005 17:50:14 -0000 >Number: 83397 >Category: www >Synopsis: Improvement to the GNATS webinterface >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 13 17:50:13 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marius Nuennerich >Release: >Organization: >Environment: >Description: With http://www.freebsd.org/send-pr.html it isn't possible to send most patches in the "fix" textarea, because tabs are replaced with spaces. The attached patch adds the possiblity to upload files, which get attached to the PR in the fix section. Be aware that I have never coded perl before, so it is likely the patch isn't working out of the box. I also had no chance to test and I'm not sure if this is secure! >How-To-Repeat: >Fix: --- patch begins here --- diff -ru www.bak/en/cgi/dosendpr.cgi www/en/cgi/dosendpr.cgi --- www.bak/en/cgi/dosendpr.cgi Wed Jul 13 17:47:04 2005 +++ www/en/cgi/dosendpr.cgi Wed Jul 13 19:25:20 2005 @@ -153,6 +153,14 @@ if ($blackhole_err) { $pr .= "X-REMOTE_ADDR-Is-Open-Proxy: Maybe\n"; } + +{ + use bytes; + if (length($cgi_bin{'patch'}) > 1048576) { + die "patchfile too big!"; + } +} + $pr .= "X-Send-Pr-Version: www-2.3\n\n" . ">Submitter-Id:\t$cgi_data{'submitterid'}\n" . ">Originator:\t$cgi_data{'originator'}\n" . @@ -167,9 +175,10 @@ ">Environment:\t$cgi_data{'environment'}\n" . ">Description:\n$cgi_data{'description'}\n" . ">How-To-Repeat:\n$cgi_data{'howtorepeat'}\n" . - ">Fix:\n$cgi_data{'fix'}\n"; + ">Fix:\n$cgi_data{'fix'}\n" . + "$cgi_data{'patch'}\n"; -# remove any carrage returns that appear in the report. +# remove any carriage returns that appear in the report. $pr =~ s/\r//g; if (open (SUBMIT, "|$submission_program")){ diff -ru www.bak/en/send-pr.sgml www/en/send-pr.sgml --- www.bak/en/send-pr.sgml Wed Jul 13 17:47:09 2005 +++ www/en/send-pr.sgml Wed Jul 13 19:29:18 2005 @@ -38,7 +38,8 @@ the bugbusters team for submission into the bug tracking system.

-
+ @@ -111,6 +112,9 @@ :

+ + : +