Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 26775 invoked from network); 4 May 2005 21:56:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 21:56:07 -0000 Received: (qmail 91038 invoked by uid 500); 4 May 2005 21:58:06 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 91007 invoked by uid 500); 4 May 2005 21:58:05 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 90988 invoked by uid 99); 4 May 2005 21:58:05 -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 force-elite.com (HELO utopia.in.force-elite.com) (216.255.199.145) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 14:58:05 -0700 X-AuthUser: chip@force-elite.com Received: from [10.0.0.142] (10.0.0.142:55123) by utopia.in.force-elite.com with [XMail 1.17 (Linux/Ix86) ESMTP Server] id for from ; Wed, 04 May 2005 14:55:52 -0700 Message-ID: <427944E6.40607@force-elite.com> Date: Wed, 04 May 2005 14:55:50 -0700 From: Paul Querna User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: ap_getword_conf should die. X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N We need a better public method for parsing configs with quoted args, or when they are split between multiple lines. Currently, ap_getword_conf has a few problems: 1. There is no way to tell the difference between: Command foo and: Command foo "" If the last arg is a "", it looks exactly like the end of the command. 2. The quoting is just wrong. For example, you cannot have an argument that ends in \, because the \ is used for escaping ". But, \ cannot be used to escape \ itself.. ie no \\. 3. ap_resolve_env(). Why is this sprinkled all over the configuration code? Using ${ENV} inside the config for any directive is not documented. I think we should just toss it out. I am not sure if changing this function is wise, since it has been in the public interface _forever_, and there might be modules that rely upon these behaviors. Thoughts? I propose making a new function. Then move the core config code over, mark ap_getword_conf as @depreciated, and plan to remove it in the $future. I don't think changing the behavoirs of ap_getword_conf is a good plan, since it may result in misconfiguration problems. -Paul