comparison vendor/symfony/browser-kit/Cookie.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 7a779792577d
children 129ea1e6d783
comparison
equal deleted inserted replaced
12:7a779792577d 13:5fb285c0d0e3
42 protected $rawValue; 42 protected $rawValue;
43 43
44 /** 44 /**
45 * Sets a cookie. 45 * Sets a cookie.
46 * 46 *
47 * @param string $name The cookie name 47 * @param string $name The cookie name
48 * @param string $value The value of the cookie 48 * @param string $value The value of the cookie
49 * @param string $expires The time the cookie expires 49 * @param string|null $expires The time the cookie expires
50 * @param string $path The path on the server in which the cookie will be available on 50 * @param string|null $path The path on the server in which the cookie will be available on
51 * @param string $domain The domain that the cookie is available 51 * @param string $domain The domain that the cookie is available
52 * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client 52 * @param bool $secure Indicates that the cookie should only be transmitted over a secure HTTPS connection from the client
53 * @param bool $httponly The cookie httponly flag 53 * @param bool $httponly The cookie httponly flag
54 * @param bool $encodedValue Whether the value is encoded or not 54 * @param bool $encodedValue Whether the value is encoded or not
55 */ 55 */
56 public function __construct($name, $value, $expires = null, $path = null, $domain = '', $secure = false, $httponly = true, $encodedValue = false) 56 public function __construct($name, $value, $expires = null, $path = null, $domain = '', $secure = false, $httponly = true, $encodedValue = false)
57 { 57 {
58 if ($encodedValue) { 58 if ($encodedValue) {
59 $this->value = urldecode($value); 59 $this->value = urldecode($value);
110 } 110 }
111 111
112 /** 112 /**
113 * Creates a Cookie instance from a Set-Cookie header value. 113 * Creates a Cookie instance from a Set-Cookie header value.
114 * 114 *
115 * @param string $cookie A Set-Cookie header value 115 * @param string $cookie A Set-Cookie header value
116 * @param string $url The base URL 116 * @param string|null $url The base URL
117 * 117 *
118 * @return static 118 * @return static
119 * 119 *
120 * @throws \InvalidArgumentException 120 * @throws \InvalidArgumentException
121 */ 121 */
240 } 240 }
241 241
242 /** 242 /**
243 * Gets the expires time of the cookie. 243 * Gets the expires time of the cookie.
244 * 244 *
245 * @return string The cookie expires time 245 * @return string|null The cookie expires time
246 */ 246 */
247 public function getExpiresTime() 247 public function getExpiresTime()
248 { 248 {
249 return $this->expires; 249 return $this->expires;
250 } 250 }