iliaa Sun Oct 31 23:52:52 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/curl interface.c Log: Fixed bug #30613 (Prevent infinite recursion in url redirection). http://cvs.php.net/diff.php/php-src/ext/curl/interface.c?r1=1.46.2.4&r2=1.46.2.5&ty=u Index: php-src/ext/curl/interface.c diff -u php-src/ext/curl/interface.c:1.46.2.4 php-src/ext/curl/interface.c:1.46.2.5 --- php-src/ext/curl/interface.c:1.46.2.4 Mon Oct 18 18:42:16 2004 +++ php-src/ext/curl/interface.c Sun Oct 31 23:52:51 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interface.c,v 1.46.2.4 2004/10/18 22:42:16 iliaa Exp $ */ +/* $Id: interface.c,v 1.46.2.5 2004/11/01 04:52:51 iliaa Exp $ */ #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS @@ -802,6 +802,7 @@ curl_easy_setopt(ch->cp, CURLOPT_WRITEHEADER, (void *) ch); curl_easy_setopt(ch->cp, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); curl_easy_setopt(ch->cp, CURLOPT_DNS_CACHE_TIMEOUT, 120); + curl_easy_setopt(ch->cp, CURLOPT_MAXREDIRS, 20); /* prevent infinite redirects */ #if defined(ZTS) curl_easy_setopt(ch->cp, CURLOPT_NOSIGNAL, 1); #endif
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php