mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Make https:// be exempt from safe_mode checks, just like http:// & ftp:// are.
This commit is contained in:
parent
b284497eaf
commit
a643ae656a
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ PHPAPI int php_checkuid(const char *filename, char *fopen_mode, int mode)
|
||||||
* If given filepath is a URL, allow - safe mode stuff
|
* If given filepath is a URL, allow - safe mode stuff
|
||||||
* related to URL's is checked in individual functions
|
* 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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue