Skip to content
Permalink
Browse files

External Libraries: Fix PHP 7.4 compatibility issue in the Requests l…

…ibrary.

Moves rmccue/Requests#370 into WordPress.

Previous [46258].

See #47746.


git-svn-id: https://develop.svn.wordpress.org/trunk@46416 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
aaronjorbin committed Oct 6, 2019
1 parent a59b9dd commit 2215a9bbb3308cf837017900dd129c468639ce5d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/wp-includes/Requests/Cookie.php
@@ -288,6 +288,11 @@ protected function normalize_attribute($name, $value) {
return $expiry_time;
case 'domain':
// Domains are not required as per RFC 6265 section 5.2.3
if (empty($value)) {
return null;
}
// Domain normalization, as per RFC 6265 section 5.2.3
if ($value[0] === '.') {
$value = substr($value, 1);

0 comments on commit 2215a9b

Please sign in to comment.
You can’t perform that action at this time.