Skip to content

Commit

Permalink
only convert boxId/commonName to lower case for dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 3, 2024
1 parent 93fe6a2 commit cad9df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,8 @@ settings_t *get_settings_cn(const char *commonName)
settings_get_by_name_id("core.certdir", i)->overlayed = true;

const char *certDir = settings_get_string_id("core.certdir", i);
osStringToLower(boxId);
char *customCertDir = osAllocMem(osStrlen(boxId) + osStrlen(certDir) + 2);
osStringToLower(customCertDir);
osSnprintf(customCertDir, osStrlen(boxId) + osStrlen(certDir) + 2, "%s%c%s", certDir, PATH_SEPARATOR, boxId);
settings_set_string_id("core.certdir", customCertDir, i);
osFreeMem(customCertDir);
Expand Down

0 comments on commit cad9df5

Please sign in to comment.