]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Block all control chars in PPD localization strings.
authorMichael R Sweet <msweet@msweet.org>
Thu, 30 Jul 2026 23:12:43 +0000 (19:12 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 30 Jul 2026 23:12:43 +0000 (19:12 -0400)
cups/ppd-cache.c

index acb7fc351cbdee6add0b0cb5870c7e4b9b6381e6..fcbac0921f3fd7bc5efe0b7482d3f5de4214c6be 100644 (file)
@@ -5665,7 +5665,7 @@ ppd_put_strings(cups_file_t *fp,  /* I - PPD file */
     {
       // Add the first line of localized text...
       cupsFilePrintf(fp, "*%s.%s %s/", lang->language, ppd_option, ppd_choice);
-      while (*text && *text != '\n')
+      while (*text && (*text & 255) >= ' ')
       {
         // Escape ":" and "<"...
         if (*text == ':' || *text == '<')