[php-src] PR #23532: ext/standard: Do not double the slash when resolving relative redirects
| From: | iliaal | Date: | Tue, 01 Sep 2026 15:50:37 +0000 |
| Subject: | [php-src] PR #23532: ext/standard: Do not double the slash when resolving relative redirects | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-38249@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23532
Author: iliaal
Follow-up to GH-23521. resource->path always ends in a slash by the time the relative Location is
appended (s[1] = '\0' truncates it after the last one), so the "%s/%s" format
doubles the separator: Location: xy from http://host/a/b redirects to
/a//xy instead of /a/xy. "%s%s" fixes that and makes the root-path special case redundant.
Single-character locations keep resolving against the host root, as pinned on the stable branches.