mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 12:29:04 +08:00
committed by
Sébastien Ros
parent
eb71d1ced7
commit
ac039a1dcd
@@ -209,8 +209,9 @@ namespace Orchard.MediaProcessing.Services {
|
||||
}
|
||||
|
||||
// http://blob.storage-provider.net/my-image.jpg
|
||||
if (Uri.IsWellFormedUriString(path, UriKind.Absolute)) {
|
||||
return new WebClient().OpenRead(new Uri(path));
|
||||
Uri absoluteUri;
|
||||
if (Uri.TryCreate(path, UriKind.Absolute, out absoluteUri)) {
|
||||
return new WebClient().OpenRead(absoluteUri);
|
||||
}
|
||||
|
||||
// ~/Media/Default/images/my-image.jpg
|
||||
|
||||
Reference in New Issue
Block a user