mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
Replace IsNullOrWhiteSpace with IsNullOrEmpty.
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Orchard.Azure.Services.FileSystems.Media {
|
|||||||
EnsureInitialized();
|
EnsureInitialized();
|
||||||
var rootUri = new Uri(_absoluteRoot);
|
var rootUri = new Uri(_absoluteRoot);
|
||||||
var uri = new Uri(url);
|
var uri = new Uri(url);
|
||||||
if((uri.Host == rootUri.Host || (!string.IsNullOrWhiteSpace(_publicHostName) && uri.Host == _publicHostName)) && uri.AbsolutePath.StartsWith(rootUri.AbsolutePath)) {
|
if((uri.Host == rootUri.Host || (!string.IsNullOrEmpty(_publicHostName) && uri.Host == _publicHostName)) && uri.AbsolutePath.StartsWith(rootUri.AbsolutePath)) {
|
||||||
return HttpUtility.UrlDecode(uri.PathAndQuery.Substring(Combine(rootUri.AbsolutePath, "/").Length));
|
return HttpUtility.UrlDecode(uri.PathAndQuery.Substring(Combine(rootUri.AbsolutePath, "/").Length));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user