Skip to content

Commit ab5a306

Browse files
committed
Fix #592 - Cleanup needs path to be aboslute when outside site root.
1 parent 3e6f137 commit ab5a306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uSync.BackOffice/Services/SyncFileService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public string GetAbsPath(string path)
5757
/// </remarks>
5858
public string GetSiteRelativePath(string path)
5959
{
60-
if (Path.IsPathFullyQualified(path))
60+
if (Path.IsPathFullyQualified(path) && path.StartsWith(_hostEnvironment.ContentRootPath))
6161
return path.Substring(_hostEnvironment.ContentRootPath.Length).TrimStart(_trimChars);
6262
return path;
6363
}

0 commit comments

Comments
 (0)