Browse Source

MFB: Fixed bug #30613 (Prevent infinite recursion in url redirection).

PHP-5.1
Ilia Alshanetsky 22 years ago
parent
commit
5b95dc5faf
  1. 1
      ext/curl/interface.c

1
ext/curl/interface.c

@ -801,6 +801,7 @@ PHP_FUNCTION(curl_init)
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

Loading…
Cancel
Save