]> granicus.if.org Git - php/commitdiff
-fix logic (and BC break)
authorPierre Joye <pajoye@php.net>
Mon, 23 Aug 2010 18:05:05 +0000 (18:05 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 23 Aug 2010 18:05:05 +0000 (18:05 +0000)
ext/standard/http_fopen_wrapper.c

index 4ae78f3ac48597d813dd8b0cc4eabdd01e357e3e..7d238d65acfd4063e89724f1c975bd8e487b750e 100644 (file)
@@ -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;
                }