cvs: php4 /main safe_mode.c

From: Date: Fri, 16 Aug 2002 03:52:38 +0000
Subject: cvs: php4 /main safe_mode.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13398@lists.php.net to get a copy of this message
iliaa Thu Aug 15 23:52:38 2002 EDT Modified files: /php4/main safe_mode.c Log: Make https:// be exempt from safe_mode checks, just like http:// & ftp:// are. Index: php4/main/safe_mode.c diff -u php4/main/safe_mode.c:1.46 php4/main/safe_mode.c:1.47 --- php4/main/safe_mode.c:1.46 Wed Jul 17 01:15:17 2002 +++ php4/main/safe_mode.c Thu Aug 15 23:52:37 2002 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: safe_mode.c,v 1.46 2002/07/17 05:15:17 yohgaki Exp $ */ +/* $Id: safe_mode.c,v 1.47 2002/08/16 03:52:37 iliaa Exp $ */ #include "php.h" @@ -73,7 +73,7 @@ * If given filepath is a URL, allow - safe mode stuff * related to URL's is checked in individual functions */ - if (!strncasecmp(filename,"http://", 7) || !strncasecmp(filename,"ftp://", 6)) { + if (!strncasecmp(filename,"http://", 7) || !strncasecmp(filename,"ftp://", 6) || !strncasecmp(filename,"https://", 8)) { return 1; }

« previous php.cvs (#13398) next »