Skip to content

Commit

Permalink
remove use of stricmp bc its not available on POSIX systems (windows …
Browse files Browse the repository at this point in the history
…only)
  • Loading branch information
nam20485 committed Apr 20, 2024
1 parent 2447039 commit 776420f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OdbDesignServer/Controllers/DesignsController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ namespace Odb::App::Server
auto szExcludeFileArchive = req.url_params.get(kszExcludeFileArchiveQueryParamName);
if (szExcludeFileArchive != nullptr)
{
if (stricmp(szExcludeFileArchive, "true") == 0)
if (std::strcmp(szExcludeFileArchive, "true") == 0 ||
std::strcmp(szExcludeFileArchive, "yes") == 0)
{
excludeFileArchive = true;
}
Expand Down

0 comments on commit 776420f

Please sign in to comment.