Browse Source

Change determination of absolute path

Determine all strings before ': //' and the result of stream_get_wrappers().
mtak3 8 years ago
parent
commit
e7dfac4bba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Filesystem/Folder.php

+ 1 - 1
src/Filesystem/Folder.php

@@ -345,7 +345,7 @@ class Folder
      */
     public static function isRegisteredStreamWrapper($path)
     {
-        return preg_match('/^[A-Z]+(?=:\/\/)/i', $path, $matches) &&
+        return preg_match('/^[^:\/\/]+?(?=:\/\/)/i', $path, $matches) &&
             in_array($matches[0], stream_get_wrappers());
     }