mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Replace IsNullOrWhiteSpace with IsNullOrEmpty.
This commit is contained in:
parent
9a1d047154
commit
de8c084c53
@ -67,7 +67,7 @@ namespace Orchard.Azure.Services.FileSystems.Media {
|
||||
EnsureInitialized();
|
||||
var rootUri = new Uri(_absoluteRoot);
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user