From 51ed39768d2fdb3e337769ee58e972eddbed859b Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Tue, 15 May 2012 19:17:17 +0000 Subject: [PATCH] CURL: do not follow redirects --- fp-includes/core/core.utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/core/core.utils.php b/fp-includes/core/core.utils.php index 096efcf..e93a2c9 100644 --- a/fp-includes/core/core.utils.php +++ b/fp-includes/core/core.utils.php @@ -412,7 +412,7 @@ function utils_geturl($url) { $options = array( CURLOPT_RETURNTRANSFER => true, // return web page CURLOPT_HEADER => false, // don't return headers - CURLOPT_FOLLOWLOCATION => true, // follow redirects + CURLOPT_FOLLOWLOCATION => false, // don't follow redirects CURLOPT_ENCODING => "", // handle all encodings CURLOPT_USERAGENT => "spider", // who am i CURLOPT_AUTOREFERER => true, // set referer on redirect