iliaa           Sun Oct 31 23:55:02 2004 EDT

  Modified files:              
    /php-src/ext/curl   interface.c 
  Log:
  MFB: Fixed bug #30613 (Prevent infinite recursion in url redirection).
  
  
http://cvs.php.net/diff.php/php-src/ext/curl/interface.c?r1=1.50&r2=1.51&ty=u
Index: php-src/ext/curl/interface.c
diff -u php-src/ext/curl/interface.c:1.50 php-src/ext/curl/interface.c:1.51
--- php-src/ext/curl/interface.c:1.50   Mon Oct 18 18:41:24 2004
+++ php-src/ext/curl/interface.c        Sun Oct 31 23:55:01 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: interface.c,v 1.50 2004/10/18 22:41:24 iliaa Exp $ */
+/* $Id: interface.c,v 1.51 2004/11/01 04:55:01 iliaa Exp $ */
 
 #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 
@@ -801,6 +801,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

Reply via email to