From 5b54caac764dd2e608ad111f819871dd2818a277 Mon Sep 17 00:00:00 2001 From: Noel Darlow Date: Mon, 2 Jul 2012 01:26:30 +0100 Subject: still trying.. --- .../php/files/4.4.1/php4.4.1-curl-open_basedir.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dev-lang/php/files/4.4.1/php4.4.1-curl-open_basedir.patch (limited to 'dev-lang/php/files/4.4.1/php4.4.1-curl-open_basedir.patch') diff --git a/dev-lang/php/files/4.4.1/php4.4.1-curl-open_basedir.patch b/dev-lang/php/files/4.4.1/php4.4.1-curl-open_basedir.patch new file mode 100644 index 0000000..60094c0 --- /dev/null +++ b/dev-lang/php/files/4.4.1/php4.4.1-curl-open_basedir.patch @@ -0,0 +1,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); \ -- cgit v1.2.3-65-gdbad