Mercurial > hg > cmmr2012-drupal-site
diff vendor/zendframework/zend-feed/src/Uri.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | 5311817fb629 |
children |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/Uri.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/zendframework/zend-feed/src/Uri.php Thu Feb 28 13:11:55 2019 +0000 @@ -145,7 +145,7 @@ } if ($this->host) { - if ($this->path && substr($this->path, 0, 1) != '/') { + if ($this->path && 0 !== strpos($this->path, '/')) { return false; } return true; @@ -158,7 +158,7 @@ if ($this->path) { // Check path-only (no host) URI - if (substr($this->path, 0, 2) == '//') { + if (0 === strpos($this->path, '//')) { return false; } return true;