Fix inconsistent sanitation with the database #32
1 changed files with 1 additions and 1 deletions
2
src/Db.c
2
src/Db.c
|
@ -240,7 +240,7 @@ DbDirName(Db * db, Array * args, size_t strip)
|
||||||
for (i = 0; i < ArraySize(args) - strip; i++)
|
for (i = 0; i < ArraySize(args) - strip; i++)
|
||||||
{
|
{
|
||||||
char *tmp;
|
char *tmp;
|
||||||
char *sanitise = ArrayGet(args, i);
|
char *sanitise = StrDuplicate(ArrayGet(args, i));
|
||||||
for (j = 0; j < strlen(sanitise); j++)
|
for (j = 0; j < strlen(sanitise); j++)
|
||||||
{
|
{
|
||||||
sanitise[j] = DbSanitiseChar(sanitise[j]);
|
sanitise[j] = DbSanitiseChar(sanitise[j]);
|
||||||
|
|
Loading…
Reference in a new issue