Skip to content
Permalink
Browse files

Change determination of absolute path

Determine all strings before ': //' and the result of stream_get_wrappers().
  • Loading branch information...
mtak3 committed Jan 24, 2018
1 parent bb8d89f commit e7dfac4bbaa7ea3b1b51ad7efcf59fe920653ded
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Filesystem/Folder.php
@@ -345,7 +345,7 @@ public static function isAbsolute($path)
*/
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());
}

0 comments on commit e7dfac4

Please sign in to comment.
You can’t perform that action at this time.