comparison vendor/zendframework/zend-diactoros/src/Uri.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 c2387f117808
comparison
equal deleted inserted replaced
12:7a779792577d 13:5fb285c0d0e3
301 // Do nothing if no change was made. 301 // Do nothing if no change was made.
302 return $this; 302 return $this;
303 } 303 }
304 304
305 $new = clone $this; 305 $new = clone $this;
306 $new->host = $host; 306 $new->host = strtolower($host);
307 307
308 return $new; 308 return $new;
309 } 309 }
310 310
311 /** 311 /**
449 ); 449 );
450 } 450 }
451 451
452 $this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : ''; 452 $this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : '';
453 $this->userInfo = isset($parts['user']) ? $this->filterUserInfoPart($parts['user']) : ''; 453 $this->userInfo = isset($parts['user']) ? $this->filterUserInfoPart($parts['user']) : '';
454 $this->host = isset($parts['host']) ? $parts['host'] : ''; 454 $this->host = isset($parts['host']) ? strtolower($parts['host']) : '';
455 $this->port = isset($parts['port']) ? $parts['port'] : null; 455 $this->port = isset($parts['port']) ? $parts['port'] : null;
456 $this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : ''; 456 $this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : '';
457 $this->query = isset($parts['query']) ? $this->filterQuery($parts['query']) : ''; 457 $this->query = isset($parts['query']) ? $this->filterQuery($parts['query']) : '';
458 $this->fragment = isset($parts['fragment']) ? $this->filterFragment($parts['fragment']) : ''; 458 $this->fragment = isset($parts['fragment']) ? $this->filterFragment($parts['fragment']) : '';
459 459