From apwww@hyperreal.org Mon Sep 8 01:28:27 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id BAA23622; Mon, 8 Sep 1997 01:28:27 -0700 (PDT) Message-Id: <199709080828.BAA23622@hyperreal.org> Date: Mon, 8 Sep 1997 01:28:27 -0700 (PDT) From: John Pierce Reply-To: jwp@r2systems.com To: apbugs@hyperreal.org Subject: In util_script.c/call_exec(), must use "#!interp" rather than "#! interp" in cgi scripts. X-Send-Pr-Version: 3.2 >Number: 1101 >Category: os-windows >Synopsis: In util_script.c/call_exec(), must use "#!interp" rather than "#! interp" in cgi scripts. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Sep 8 01:30:01 1997 >Last-Modified: Sun Dec 7 13:50:17 PST 1997 >Originator: jwp@r2systems.com >Organization: >Release: 1.3a1 >Environment: Win95, OSR2, IE4.0, VC 5.0 >Description: If a cgi script starts with "#!interp", it works. If it starts with "#! interp" (note space before "interp"), it fails. Clearly this is not serious, but for compatibility with scripts coming from Unix boxes it would be nice if the code in util_script.c/call_exec() flushed leading spaces from the interpreter's name. >How-To-Repeat: Put a space between "#!" and "interp" in a cgi script and run it. >Fix: At line 621 in util_script.c for(i = 2; interpreter[i] == ' '; ++i) ; interpreter = interpreter + i%3 >Audit-Trail: Category-Changed-From-To: mod_cgi-os-windows Category-Changed-By: dgaudet Category-Changed-When: Thu Sep 18 12:29:03 PDT 1997 State-Changed-From-To: open-closed State-Changed-By: ben State-Changed-When: Sun Dec 7 13:50:16 PST 1997 State-Changed-Why: A fix has been committed for 1.3b4. Thanks. >Unformatted: