From 411d09089575c1340f4e9b428428217424b1acfc Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Mon, 23 Aug 2010 18:05:05 +0000 Subject: [PATCH] -fix logic (and BC break) --- ext/standard/http_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index f283cc4935..a21919a806 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -678,7 +678,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, } if (!reqok || (location[0] != '\0' && follow_location)) { - if (!follow_location && (((options & STREAM_ONLY_GET_HEADERS) || ignore_errors) && redirect_max <= 1)) { + if (!follow_location || (((options & STREAM_ONLY_GET_HEADERS) || ignore_errors) && redirect_max <= 1)) { goto out; } -- 2.40.0