Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 1565 invoked from network); 10 Sep 2004 14:48:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Sep 2004 14:48:56 -0000 Received: (qmail 56938 invoked by uid 500); 10 Sep 2004 14:48:50 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 56785 invoked by uid 500); 10 Sep 2004 14:48:49 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 56706 invoked by uid 99); 10 Sep 2004 14:48:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [62.89.75.144] (HELO bozon2.softax.pl) (62.89.75.144) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 10 Sep 2004 07:48:47 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by bozon2.softax.pl (Postfix) with ESMTP id CA72FDC039 for ; Fri, 10 Sep 2004 16:48:43 +0200 (CEST) Received: from bozon2.softax.pl ([127.0.0.1]) by localhost (bozon2.softax.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28902-10 for ; Fri, 10 Sep 2004 16:48:42 +0200 (CEST) Received: from cauchy (atlas.softax.pl [62.89.75.141]) by bozon2.softax.pl (Postfix) with ESMTP id 42F76DC035 for ; Fri, 10 Sep 2004 16:48:42 +0200 (CEST) From: Marcin Kasperski To: apreq-dev@httpd.apache.org Subject: (bugreport) Apache::Request fails to process parameters containing null character Date: Fri, 10 Sep 2004 16:48:41 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Message-Id: <200409101648.41709.Marcin.Kasperski@softax.com.pl> X-Virus-Scanned: by amavisd-new at softax.pl X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N (I send this report here as it seems to me the best place to report bug in Apache::Request, if there is any other, please let me know.) Short story (tested on libapreq-1.3 - I am still on modperl1): - do http GET on URL like http://my.machine/my/url?par=%07%CCg%E8%2F%00r%FA%BF (the point is in %00 embedded in parameter value) - when you access the 'par' parameter via Apache::Request from whithin modperl script, it is trimmed on this null character my $apr = Apache::Request->new($r); my $val = $apr->param('par'); print length($val); # prints 5 although should print 9 At the same time URI::Escape unescape function handles such param properly. PS For curious: of course such url was not sent by the browser. But it happens in real production case in some webservices program-to-program interaction.