summaryrefslogtreecommitdiff
path: root/ext/curl/streams.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-08-10 15:02:41 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-08-10 15:02:41 +0000
commit2ce982b433e4fb651fe80dc9f0eaeb319daaefaf (patch)
tree2766c2b281c4c46c2ca7e99a8768f476b820d7f8 /ext/curl/streams.c
parenta4d2f0430723b4f0cf8a68e8b8a7e549658187ab (diff)
downloadphp-git-2ce982b433e4fb651fe80dc9f0eaeb319daaefaf.tar.gz
Fixed condition
Diffstat (limited to 'ext/curl/streams.c')
-rw-r--r--ext/curl/streams.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/curl/streams.c b/ext/curl/streams.c
index a1758787da..f4aeded3e9 100644
--- a/ext/curl/streams.c
+++ b/ext/curl/streams.c
@@ -350,17 +350,17 @@ php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename,
}
if (mr > 1) {
if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) {
- curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);
- } else {
curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);
+ } else {
+ curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);
}
curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, mr);
}
} else {
if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) {
- curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);
- } else {
curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0);
+ } else {
+ curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1);
}
curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, 20L);
}