- Fix according to Sara's reply

This commit is contained in:
Andi Gutmans 2006-02-19 03:41:25 +00:00
parent ac1e7362b3
commit 8f126f33ac

View File

@ -964,8 +964,7 @@ static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int op
url = p + 3;
}
/* FIXME: Andi - Pending email I sent to internals@ re: ENFORCE_SAFE_MODE */
if (options & ENFORCE_SAFE_MODE) {
if (!(options & STREAM_DISABLE_OPEN_BASEDIR)) {
if (php_check_open_basedir(url TSRMLS_CC)) {
return 0;
}