Re: Bug #1293 Updated: UNC (\\server\share) pathnames don't work

From: Date: Mon, 05 Apr 1999 21:26:14 +0000
Subject: Re: Bug #1293 Updated: UNC (\\server\share) pathnames don't work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4940@lists.php.net to get a copy of this message
> Well, this is a task for the operating system, not PHP to deal with. Proposed > patch: > > Index: fopen-wrappers.c > =================================================================== > RCS file: /repository/php3/fopen-wrappers.c,v > retrieving revision 1.57 > diff -u -r1.57 fopen-wrappers.c > --- fopen-wrappers.c 1999/02/15 17:25:44 1.57 > +++ fopen-wrappers.c 1999/04/05 21:29:04 > @@ -131,7 +131,9 @@ > ) { > local_open_basedir[local_open_basedir_pos--] = 0; > } > - > +/* stripping unnecessary slashes is left > + as an exercise for the underlying OS */ > +#if 0 > /* Strip double (back)slashes */ > if (local_open_basedir_pos > 0) { > while (( > @@ -145,7 +147,7 @@ > local_open_basedir[local_open_basedir_pos--] = > 0; > } > } > - > +#endif > } else { > /* Else use the unmodified path */ > strcpy(local_open_basedir, basedir); > > > -- I agree with this one. I didn't think of the Windows case when I originally wrote that code to strip those. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4940) next »