From owner-freebsd-bugs Wed Jun 24 16:11:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA23506 for freebsd-bugs-outgoing; Wed, 24 Jun 1998 16:11:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA23385 for ; Wed, 24 Jun 1998 16:10:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA28950; Wed, 24 Jun 1998 16:10:02 -0700 (PDT) Received: from www.video-collage.com (www.video-collage.com [206.15.171.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA23231 for ; Wed, 24 Jun 1998 16:09:43 -0700 (PDT) (envelope-from mi@xxx.video-collage.com) Received: from xxx.video-collage.com (xxx.video-collage.com [199.232.254.68]) by www.video-collage.com (8.8.5/8.8.5) with ESMTP id TAA26554 for ; Wed, 24 Jun 1998 19:07:00 -0400 (EDT) Received: (from mi@localhost) by xxx.video-collage.com (8.8.8/8.8.7) id TAA09928; Wed, 24 Jun 1998 19:09:24 -0400 (EDT) (envelope-from mi) Message-Id: <199806242309.TAA09928@xxx.video-collage.com> Date: Wed, 24 Jun 1998 19:09:24 -0400 (EDT) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/7059: sh dumps core on this script Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7059 >Category: bin >Synopsis: sh dumps core on this script >Confidential: yes >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 24 16:10:01 PDT 1998 >Last-Modified: >Originator: Mikhail Teterin >Organization: Video Collage, Inc. >Release: FreeBSD 2.2.6-BETA i386 >Environment: QUERY_STRING=First_Name=Mikhail&Last_Name=Teterin&Phone=617-332-0552&Fax=&Email=mi%40aldan.algebra.com&Company=%26ls&Division=&Title=&Company_Size=less+than+25&Address=&City=&State=&Postal_Code=&Country=&Reference=Softimage+Website&Intended_Use=&Number_Users=single&Programming=Yes&B2=Submit&QQQLINKQQQ=./dura <------ start of mail.cgi script ---------------> #!/bin/sh SETTINGS_DIR=`eval basename \`basename $0\`` # Do the mailing. EMAILS_TXT=$SETTINGS_DIR/e-mails.txt # If the file with addresses exist -- # use it. Otherwise, use hardcoded address. if [ -r $EMAILS_TXT ] then EMAILS=`egrep -v ^# $EMAILS_TXT` else EMAILS=mi fi (env ; cat) | mail -s $0 $EMAILS # Output the ThankYou text: # First, look for the hidden field: for pair in `echo ${QUERY_STRING} | sed 's/&/ /g'` ; do _TY_FILE=${pair#QQQLINKQQQ=} if [ $_TY_FILE != $pair ] then _TY_FILE=${DOCUMENT_ROOT}${_TY_FILE} test -r ${_TY_FILE} || \ logger "${_TY_FILE} does not exist or is not readable" break fi done TY_FILE=${_TY_FILE:-$SETTINGS_DIR/ThankYou.html} # This will tell the user's browser it will receive HTML cat << BEGIN_HTML Content-Type: text/html BEGIN_HTML # If the custom ThankYou.html exists -- output it, # otherwise, output the build-in default message: if [ -r $TY_FILE ] then cat $TY_FILE else cat << EO_TY Thank you

Thank you for contacting us.

The information you submitted was forwarded for processing.
Video Collage EO_TY fi <----------- End of mail.cgi -------------> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message