comparison vendor/guzzlehttp/guzzle/src/MessageFormatter.php @ 13:5fb285c0d0e3

Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've been lucky to get away with this so far, as we don't support self-registration which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5 was vulnerable to.
author Chris Cannam
date Mon, 23 Apr 2018 09:33:26 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
12:7a779792577d 13:5fb285c0d0e3
17 * - {date_iso_8601} ISO 8601 date in GMT 17 * - {date_iso_8601} ISO 8601 date in GMT
18 * - {date_common_log} Apache common log date using the configured timezone. 18 * - {date_common_log} Apache common log date using the configured timezone.
19 * - {host}: Host of the request 19 * - {host}: Host of the request
20 * - {method}: Method of the request 20 * - {method}: Method of the request
21 * - {uri}: URI of the request 21 * - {uri}: URI of the request
22 * - {host}: Host of the request
23 * - {version}: Protocol version 22 * - {version}: Protocol version
24 * - {target}: Request target of the request (path + query + fragment) 23 * - {target}: Request target of the request (path + query + fragment)
25 * - {hostname}: Hostname of the machine that sent the request 24 * - {hostname}: Hostname of the machine that sent the request
26 * - {code}: Status code of the response (if available) 25 * - {code}: Status code of the response (if available)
27 * - {phrase}: Reason phrase of the response (if available) 26 * - {phrase}: Reason phrase of the response (if available)
72 $cache = []; 71 $cache = [];
73 72
74 return preg_replace_callback( 73 return preg_replace_callback(
75 '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', 74 '/{\s*([A-Za-z_\-\.0-9]+)\s*}/',
76 function (array $matches) use ($request, $response, $error, &$cache) { 75 function (array $matches) use ($request, $response, $error, &$cache) {
77
78 if (isset($cache[$matches[1]])) { 76 if (isset($cache[$matches[1]])) {
79 return $cache[$matches[1]]; 77 return $cache[$matches[1]];
80 } 78 }
81 79
82 $result = ''; 80 $result = '';