blob: 60094c0f37f4f5c8988836414f83cf2a90e01c07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- ext/curl/curl.c 2005-12-02 23:34:12.000000000 +0100
+++ ext/curl/curl.c 2005-12-03 01:13:51.000000000 +0100
@@ -67,7 +67,7 @@
#define PHP_CURL_CHECK_OPEN_BASEDIR(str, len) \
if (((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) && \
- strncasecmp(str, "file://", sizeof("file://") - 1) == 0) \
+ strncasecmp(str, "file:", sizeof("file:") - 1) == 0) \
{ \
php_url *tmp_url; \
\
@@ -76,7 +76,7 @@
RETURN_FALSE; \
} \
\
- if (tmp_url->query || php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
+ if (tmp_url->query || tmp_url->fragment || php_check_open_basedir(tmp_url->path TSRMLS_CC) || \
(PG(safe_mode) && !php_checkuid(tmp_url->path, "rb+", CHECKUID_CHECK_MODE_PARAM)) \
) { \
php_url_free(tmp_url); \
|