Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / Loader / Filesystem.php
index 1275044f8bc1d24c11094e752c165e778a76060d..9149bc3ea46ff2651527f890537e972b70444c18 100644 (file)
@@ -279,7 +279,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
     {
         return strspn($file, '/\\', 0, 1)
             || (strlen($file) > 3 && ctype_alpha($file[0])
-                && substr($file, 1, 1) === ':'
+                && ':' === substr($file, 1, 1)
                 && strspn($file, '/\\', 2, 1)
             )
             || null !== parse_url($file, PHP_URL_SCHEME)