Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 56921 invoked from network); 7 Oct 2004 03:47:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Oct 2004 03:47:02 -0000 Received: (qmail 64126 invoked by uid 500); 7 Oct 2004 03:46:45 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 64077 invoked by uid 500); 7 Oct 2004 03:46:43 -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 64003 invoked by uid 99); 7 Oct 2004 03:46:40 -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 [195.80.154.36] (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 06 Oct 2004 20:46:39 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 9F9CC1E19B7; Thu, 7 Oct 2004 05:46:34 +0200 (CEST) Message-ID: <4164BC19.4030802@stason.org> Date: Wed, 06 Oct 2004 23:46:33 -0400 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040804 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Joe Schaefer Cc: apreq-dev@httpd.apache.org Subject: Re: Apache::Request, APR::Table and UTF8 References: <455F1FE1-1139-11D9-A745-000D9331B488@2bz.de> <87is9p16ht.fsf@gemini.sunstarsys.com> <6E61FA29-16EC-11D9-BC00-000A95B9602E@kineticode.com> <95D96DBE-171F-11D9-9D34-000D9331B488@2bz.de> <416326AF.8040502@stason.org> <46F5EF7F-1725-11D9-B147-000A95B9602E@kineticode.com> <4163346D.8000501@stason.org> <10D4B4DB-172C-11D9-B147-000A95B9602E@kineticode.com> <41633F79.6080003@stason.org> <87k6u4x7c0.fsf@gemini.sunstarsys.com> In-Reply-To: <87k6u4x7c0.fsf@gemini.sunstarsys.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Joe Schaefer wrote: > Stas Bekman writes: > > [...] > > >>OK, how about this idea: reserve the first char for a perl flags only, > > > Will apache understand what you're doing with the values in APR::Table? > If you start embedding special characters in the value, won't that cause > a problem for folks that use APR::Table to set response headers? Yes, of course. I haven't thought of that. So it's obviously a no go. Sorry, folks, there is not much we can do here. Joe will handle it at the apreq level, but the core APR::Table is just not suitable for anything but plain strings, that no need for extra flags (since we can't store them). The only alternative I was mentioining before is to decode the data to the bytecodes, but it's not efficient. And yes it'd be nice to preserve the tainted flag too, but for the same reason we can't. As long as apreq has it resolved, there is no problem really, since nobody forces you to use APR::Table for storing data. Use pnotes or any other perl based storage instead. Of course we ought to document that in the APR::Table manpage... -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com