X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;fp=php_http_api.h;h=fdee36d80bfcec98c42fa38e7b4da2c7e76fb147;hp=9f40191e22e0ecf29cc60f91aff0b9f5fab1449d;hb=a197d80241b36d6f5581feeb80bea60a59fdbd02;hpb=8fb7d5e06e0fb4252831ecb5a3b87d0279363119 diff --git a/php_http_api.h b/php_http_api.h index 9f40191..fdee36d 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -111,23 +111,6 @@ extern STATUS _http_object_new(zend_object_value *ov, const char *cname_str, uin action; \ } -#define HTTP_CHECK_OPEN_BASEDIR(file, act) \ - if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) \ - { \ - const char *tmp = file; \ - \ - if (!strncasecmp(tmp, "file:", lenof("file:"))) { \ - tmp += lenof("file:"); \ - while ((tmp - (const char *)file < 7) && (*tmp == '/' || *tmp == '\\')) ++tmp; \ - } \ - \ - if ( (tmp != file || !strstr(file, "://")) && \ - (!*tmp || php_check_open_basedir(tmp TSRMLS_CC) || \ - (PG(safe_mode) && !php_checkuid(tmp, "rb+", CHECKUID_CHECK_MODE_PARAM)))) { \ - act; \ - } \ - } - #define http_log(f, i, m) _http_log_ex((f), (i), (m) TSRMLS_CC) extern void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC);