From 635b7991af482e0ca78d8dfda3d3e744f6f06571 Mon Sep 17 00:00:00 2001 From: Marty Date: Mon, 20 Apr 2015 10:35:16 +1000 Subject: [PATCH] Allow UNC paths (Issue #59). --- server/tempest/Tempest/Utils/Path.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tempest/Tempest/Utils/Path.php b/server/tempest/Tempest/Utils/Path.php index 10e03cf..6ea6fdc 100644 --- a/server/tempest/Tempest/Utils/Path.php +++ b/server/tempest/Tempest/Utils/Path.php @@ -50,7 +50,7 @@ class Path /** * A regex pattern that matches one or more sequential forward or back slashes. */ - const PATTERN_SLASHES = '/[\/\\\\]+/'; + const PATTERN_SLASHES = '/(?!^)[\/\\\\]+/'; /**