;, $path) ) {
$path = "D:/FTPDIR";
}
This catches pretty much everything I have thrown at it..
I wouldn't mind using realpath(), if it didn't cause my regex to fail.
"Stut" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> GT wrote:
>
I'll have a peek at it..
"Stut" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> GT wrote:
>
>>"Stut" <[EMAIL PROTECTED]> wrote in message
>>news:[EMAIL PROTECTED]
>>
>>>Mike wrote:
>>>
>>>
I found a much simpler way to handle this problem..
It's not pretty, but it's effective.
$path = $_GET["path"];
if( !isset( $path ) || $path == "" ) {
$path = "D:/FTPDIR";
}
$test = $path; // keep from mangling $path... For some reason, if I
did the test below using $pa
Hmmm... that sounds like it might work.. Thanks.
I'll try it after I've had some sleep.. php and no sleep don't
really go together.
""Mike"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> If it is called with the right parameters or the "Previous Directory"
>> link is clicked to
I have a script on my local test website that lists all of the files in
my FTP server directories.
It is setup to look at absolute paths. (ie: C:/Windows)
If it is called with the right parameters or the "Previous Directory"
link is clicked too many times, the browser will be outside
of the path