#U4-3838 fixed Due in version 7.1.5

Fixes ContentService Copy uses IOHelper.MapPath but should use fs.GetFullPath and a few other instances where IOHelper was used
This commit is contained in:
Sebastiaan Janssen
2014-06-27 17:22:51 +02:00
parent c53d812742
commit 5bee398d09
4 changed files with 4 additions and 4 deletions

View File

@@ -498,7 +498,7 @@ namespace Umbraco.Core.Persistence.Repositories
{
if (property.PropertyType.PropertyEditorAlias == Constants.PropertyEditors.UploadFieldAlias && property.Value != null &&
string.IsNullOrEmpty(property.Value.ToString()) == false
&& fs.FileExists(IOHelper.MapPath(property.Value.ToString())))
&& fs.FileExists(fs.GetRelativePath(property.Value.ToString())))
{
var relativeFilePath = fs.GetRelativePath(property.Value.ToString());
var parentDirectory = System.IO.Path.GetDirectoryName(relativeFilePath);

View File

@@ -398,7 +398,7 @@ namespace Umbraco.Core.Persistence.Repositories
{
if (property.PropertyType.PropertyEditorAlias == uploadFieldAlias &&
string.IsNullOrEmpty(property.Value.ToString()) == false
&& fs.FileExists(IOHelper.MapPath(property.Value.ToString())))
&& fs.FileExists(fs.GetRelativePath(property.Value.ToString())))
{
var relativeFilePath = fs.GetRelativePath(property.Value.ToString());
var parentDirectory = System.IO.Path.GetDirectoryName(relativeFilePath);