Tried realpath...
It broke my checks.. I was right back where I started. It completely hosed
my regex.
I did simplify my check routine
$path = $_GET["path"];
if( !isset( $path ) || $path == "" || !file_exists($path) ||
eregi('(^.:$|^\..|^\/?\..|^\/|^.:/$)', $path) ) {
$path = "D:/
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:
>>>
>>>
>If it is called with the right parameters or the "Previous Directory"
>link is click
GT wrote:
"Stut" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Mike wrote:
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 paths
that I want them to be in...
I would like to be ab
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
Mike wrote:
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 paths that I want them to be in...
I would like to be able to lock the browser down to a
particular set of directories and thier subs.
Wh
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
> 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 paths that I want them to be in...
>
> I would like to be able to lock the browser down to a
> particular set of directories and thier subs.
>
What you