diff --git a/system/src/Grav/Common/Filesystem/Folder.php b/system/src/Grav/Common/Filesystem/Folder.php index b30751e6a..3d30d12eb 100644 --- a/system/src/Grav/Common/Filesystem/Folder.php +++ b/system/src/Grav/Common/Filesystem/Folder.php @@ -72,8 +72,8 @@ abstract class Folder public static function getRelativePath($path, $base = GRAV_ROOT) { if ($base) { - $base = preg_replace('![\\|/]+!', '/', $base); - $path = preg_replace('![\\|/]+!', '/', $path); + $base = preg_replace('![\\\/]+!', '/', $base); + $path = preg_replace('![\\\/]+!', '/', $path); if (strpos($path, $base) === 0) { $path = ltrim(substr($path, strlen($base)), '/'); }