Skip Menu |
 

This queue is for tickets about the CGI-SSI CPAN distribution.

Report information
The Basics
Id: 13190
Status: resolved
Worked: 45 min
Priority: 0/
Queue: CGI-SSI

People
Owner: james [...] bitperfect.com
Requestors: sds [...] iastate.edu
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.85
Fixed in: (no value)



Subject: incude(virtual => 'a local URI path')
Download (untitled) / with headers
text/plain 1.1k
DIST => CGI::SSI 0.85 PERL => v5.8.1 OS => Linux 2.4.29 errmsg => [an error occurred while processing this directive] So I'm calling $ssi->include(virtual => '/ScriptAliasDir/myCGI.pl?myPARAM=2'); After tracking this through CGI::SSI::include() --> CGI::SSI::_include_virtual() --> CGI::SSI::_include_file() I find that since the path is obviously on the localhost it is being treated as a local file. Okay thats fine except that it then expects to have a fully qualified local system path to the file. Not the URI that would be used to access said file via a web client. Okay I try this and finally get around the error. However it seems that the file is simply being cat'ed directly in now instead of being processed by the web server as expected. The only way around this I see so far is to enter the virtual path as 'ScriptAliasDir/...' (removed the leading '/'). This seems to process the SSI as expected. This is unfortunately very hard to remember and dificult to retrofit into my scripts and also inconsistent with the behavior of PHP's virtual() function. Is there a reason for not processing this as the PHP function does?? Thanks for your help. -- Shannon
Download (untitled) / with headers
text/plain 510b
[guest - Fri Jun 10 12:44:44 2005]: Show quoted text
> DIST => CGI::SSI 0.85 > PERL => v5.8.1 > OS => Linux 2.4.29 > > So I'm calling > $ssi->include(virtual => '/ScriptAliasDir/myCGI.pl?myPARAM=2'); > > I find that since the path is obviously on the localhost it is being > treated as a local file. >
Hello, Thank you for the bug report, and your patience in my handling it. Attached to this message is the latest - version 0.86 which fixes this bug. It will also be available on CPAN shortly. Thanks again, James
Download CGI-SSI-0.86.tar.gz
application/x-gzip 10.1k

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.