Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/routing/CompiledRoute.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/vendor/symfony/routing/CompiledRoute.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/symfony/routing/CompiledRoute.php Mon Apr 23 09:46:53 2018 +0100 @@ -28,8 +28,6 @@ private $hostTokens; /** - * Constructor. - * * @param string $staticPrefix The static prefix of the compiled route * @param string $regex The regular expression to use to match this route * @param array $tokens An array of tokens to use to generate URL for this route @@ -73,7 +71,12 @@ */ public function unserialize($serialized) { - $data = unserialize($serialized); + if (\PHP_VERSION_ID >= 70000) { + $data = unserialize($serialized, array('allowed_classes' => false)); + } else { + $data = unserialize($serialized); + } + $this->variables = $data['vars']; $this->staticPrefix = $data['path_prefix']; $this->regex = $data['path_regex'];