Browse Source

Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz.

PHP-5.2.1RC1
Ilia Alshanetsky 19 years ago
parent
commit
0b25a9fb8c
  1. 2
      NEWS
  2. 2
      ext/curl/interface.c

2
NEWS

@ -2,6 +2,8 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2008, PHP 5.2.6
- Fixed weired behavior in CGI parameter parsing. (Dmitry, Hannes Magnusson)
- Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz.
(Ilia)
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
(David Soria Parra)

2
ext/curl/interface.c

@ -173,7 +173,7 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
php_curl_ret(__ret); \
} \
\
if (!php_memnstr(str, tmp_url->path, strlen(tmp_url->path), str + len)) { \
if (tmp_url->host || !php_memnstr(str, tmp_url->path, strlen(tmp_url->path), str + len)) { \
php_error_docref(NULL TSRMLS_CC, E_WARNING, "URL '%s' contains unencoded control characters", str); \
php_url_free(tmp_url); \
php_curl_ret(__ret); \

Loading…
Cancel
Save