diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-11-01 04:55:01 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-11-01 04:55:01 +0000 |
| commit | 5b95dc5faf2367c3fdc14ca6c8bf4b2b71ca6db3 (patch) | |
| tree | 7e822bdb7fd1063b5a09c857ee62f63006680365 /ext/curl/interface.c | |
| parent | 8ee7205c781e8b166f20f7d601fb93fc7317e61b (diff) | |
| download | php-git-5b95dc5faf2367c3fdc14ca6c8bf4b2b71ca6db3.tar.gz | |
MFB: Fixed bug #30613 (Prevent infinite recursion in url redirection).
Diffstat (limited to 'ext/curl/interface.c')
| -rw-r--r-- | ext/curl/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index b11dd2b075..8d1bb3600b 100644 --- a/ext/curl/interface.c +++ b/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 |
