CVS update: php3
| From: | steffann | Date: | Sun, 13 Sep 1998 18:35:09 +0000 |
| Subject: | CVS update: php3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1034@lists.php.net to get a copy of this message | ||
Date: Sunday September 13, 1998 @ 14:35
Author: steffann
Update of /repository/php3
In directory asf:/u2/tmp/cvs-serv26140
Modified Files:
fopen-wrappers.c
Log Message:
Fixed a bug in open_basedir.
Comparing directories was case-sensitive on Win, and case-insensitive on
Unix. Fixed.
Index: php3/fopen-wrappers.c
diff -c php3/fopen-wrappers.c:1.46 php3/fopen-wrappers.c:1.47
*** php3/fopen-wrappers.c:1.46 Fri Sep 11 19:47:16 1998
--- php3/fopen-wrappers.c Sun Sep 13 14:35:08 1998
***************
*** 27,33 ****
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
! /* $Id: fopen-wrappers.c,v 1.46 1998/09/11 23:47:16 zeev Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
--- 27,33 ----
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
! /* $Id: fopen-wrappers.c,v 1.47 1998/09/13 18:35:08 steffann Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
***************
*** 114,122 ****
if (_php3_realpath(path, resolved_name) != NULL) {
/* Check the path */
#if WIN32|WINNT
- if (strncmp(php3_ini.open_basedir, resolved_name, strlen(php3_ini.open_basedir)) == 0) {
- #else
if (strncasecmp(php3_ini.open_basedir, resolved_name, strlen(php3_ini.open_basedir)) == 0) {
#endif
/* File is in the right directory */
return 0;
--- 114,122 ----
if (_php3_realpath(path, resolved_name) != NULL) {
/* Check the path */
#if WIN32|WINNT
if (strncasecmp(php3_ini.open_basedir, resolved_name, strlen(php3_ini.open_basedir)) == 0) {
+ #else
+ if (strncmp(php3_ini.open_basedir, resolved_name, strlen(php3_ini.open_basedir)) == 0) {
#endif
/* File is in the right directory */
return 0;
--
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