Skip to content

Commit bb29868

Browse files
committed
just empty path check
1 parent 2324b9b commit bb29868

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Servers/IIS/AspNetCoreModuleV2/AspNetCore/globalmodule.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange(
8585

8686
LOG_INFOF(L"ASPNET_CORE_GLOBAL_MODULE::OnGlobalConfigurationChange '%ls'", pwszChangePath);
8787

88-
// Test for an error.
89-
if (nullptr != pwszChangePath &&
90-
_wcsicmp(pwszChangePath, L"MACHINE/WEBROOT") > 0 &&
88+
if (pwszChangePath != nullptr && pwszChangePath[0] != L'\0' &&
89+
_wcsicmp(pwszChangePath, L"MACHINE") != 0 &&
90+
_wcsicmp(pwszChangePath, L"MACHINE/WEBROOT") != 0 &&
9191
// Configuration change recycling behavior can be turned off via setting disallowRotationOnConfigChange=true on the handler settings section.
9292
// We need this duplicate setting because the global module is unable to read the app settings disallowRotationOnConfigChange value.
9393
m_pApplicationManager && m_pApplicationManager->ShouldRecycleOnConfigChange())

0 commit comments

Comments
 (0)