]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/Requests/IRI.php
WordPress 4.6.2
[autoinstalls/wordpress.git] / wp-includes / Requests / IRI.php
index 44a95171b7dcd9725029752f04ce065fe2e6fd8e..8dc2fa2841ed3006210328254ca57cbb2cfd13b2 100644 (file)
@@ -688,10 +688,7 @@ class Requests_IRI {
                $isauthority = $this->iuserinfo !== null || $this->ihost !== null || $this->port !== null;
                if ($this->ipath !== '' &&
                        (
                $isauthority = $this->iuserinfo !== null || $this->ihost !== null || $this->port !== null;
                if ($this->ipath !== '' &&
                        (
-                               $isauthority && (
-                                       $this->ipath[0] !== '/' ||
-                                       substr($this->ipath, 0, 2) === '//'
-                               ) ||
+                               $isauthority && $this->ipath[0] !== '/' ||
                                (
                                        $this->scheme === null &&
                                        !$isauthority &&
                                (
                                        $this->scheme === null &&
                                        !$isauthority &&