diff vendor/zendframework/zend-feed/src/Uri.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 7a779792577d
children
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/Uri.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/zendframework/zend-feed/src/Uri.php	Thu Feb 28 13:21:36 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;