----- Forwarded message from "Kyle R . Burton" <mo...@vo...> -----
Date: Fri, 17 May 2002 10:16:39 -0400
From: "Kyle R . Burton" <mo...@vo...>
To: Douglas Riordan <dou...@mi...>
Subject: Re: [Pas-dev] bug in RequestHandler.pm
Reply-To: "Kyle R . Burton" <mo...@vo...>
X-Mailer: Mutt 095 us
In-Reply-To: <3CE...@mi...>; from Douglas Riordan on Fri, May 17, 2002 at 10:00:08AM -0400
> i discovered a bug in RequestHandler.pm:
>
> eval " require $pkg; ";
>
> trouble is the '%' and '@' in the filename
> pas/htdocs/diagnostics/_perls_%inc.psp and
> pas/htdocs/diagnostics/_perls_%inc.psp are interpolated in the eval
> line. i'm still pokin' around a bit, but i'll fix it. jason said that
> the eval worked at some point as i'm sure this would've been caught
> originally.
You're right. When you try to access that file directly, it barfs on
the special character. It does work as an included file -- the compiler
can handle that just fine. I don't think this is necessarily a poblem
with the request handler though -- funny characters like that are not legal
for Perl module names.
So what could the code really do in this case? We probably need to document
that you shouldn't use funky characters in the psp file names as they get
translated into package names. For files included via:
<%@ page include="file"%>
it's not a problem, as it's a file system level issue.
> how do i become an author for pas? mother may i? 8^)
You have to start by applying for an account on source forge. Then
one of the project admin's for Pas has to give you write access.
k
--
------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
-- Christmas Humphreys
mo...@vo... http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
----- End forwarded message -----
--
------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
-- Christmas Humphreys
mo...@vo... http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
|