Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 32825 invoked from network); 2 Apr 2007 21:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 21:15:54 -0000 Received: (qmail 41967 invoked by uid 500); 2 Apr 2007 21:16:00 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 41953 invoked by uid 500); 2 Apr 2007 21:15:59 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 41942 invoked by uid 99); 2 Apr 2007 21:15:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 14:15:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.111.4.28] (HELO out4.smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 14:15:50 -0700 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 3D08521177E for ; Mon, 2 Apr 2007 17:15:33 -0400 (EDT) Received: from web1.messagingengine.com ([10.202.2.210]) by compute1.internal (MEProxy); Mon, 02 Apr 2007 17:15:30 -0400 Received: by web1.messagingengine.com (Postfix, from userid 99) id 983E63BDE3; Mon, 2 Apr 2007 17:15:30 -0400 (EDT) Message-Id: <1175548530.11742.1182673311@webmail.messagingengine.com> X-Sasl-Enc: 2bFEI8hyykT5gt+VQ5J5nzW/DhfvqNr5vmXC9e1fzSJC 1175548530 From: "Mark D. Anderson" To: embperl@perl.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface Subject: bugs in SSI.pm Date: Mon, 02 Apr 2007 14:15:30 -0700 X-Virus-Checked: Checked by ClamAV on apache.org 1. Only sets DOCUMENT_URI in mod_perl. Fix: change in InitSSI to have: $ENV{DOCUMENT_URI} = $Embperl::req->apache_req ? $Embperl::req->apache_req->uri : $ENV{REQUEST_URI} ; 2. Assumes that SSI expressions are perl compatible. They aren't. Fix: insert into InterpretVars $val =~ s,!=\s*/,!~ /,; $val =~ s,=\s*/,=~ /,; $val =~ s/!=/ne/; $val =~ s/=([^~])/eq$1/; This of course is not safe in quoted strings. Alternatively, this could be done: my @fields = ($val =~ m/\s* ("(?:(?!(?