Check for proper escaping in JSON and TRANSLATE DUMP.

This commit is contained in:
Dianne Skoll
2025-02-01 11:15:25 -05:00
parent 35a4994b3e
commit 51b831fb6a
6 changed files with 71 additions and 18 deletions
+2 -2
View File
@@ -1268,13 +1268,13 @@ void GenerateSysvarTranslationTemplates(void)
continue;
}
printf("SET $%s ", SysVarArr[i].name);
print_escaped_string_helper(stdout, tr(msg), 1);
print_escaped_string_helper(stdout, tr(msg), 1, 0);
printf("\n");
} else if (!strcmp(SysVarArr[i].name, "Hplu") ||
!strcmp(SysVarArr[i].name, "Mplu")) {
msg = * (char const **) SysVarArr[i].value;
printf("SET $%s ", SysVarArr[i].name);
print_escaped_string_helper(stdout, tr(msg), 1);
print_escaped_string_helper(stdout, tr(msg), 1, 0);
printf("\n");
}
}