]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Drop non-keyword characters from PPD names (Issue #1118)
authorMichael R Sweet <msweet@msweet.org>
Wed, 2 Apr 2025 19:13:05 +0000 (15:13 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 2 Apr 2025 19:13:05 +0000 (15:13 -0400)
cups/ppd-cache.c

index 155efa1bede8504a2781c97214d4ce709dfdaf28..e9e1e0f7da70752e39cf6ee1a45e49482a01ab69 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * PPD cache implementation for CUPS.
  *
- * Copyright © 2022-2024 by OpenPrinting.
+ * Copyright © 2022-2025 by OpenPrinting.
  * Copyright © 2010-2021 by Apple Inc.
  *
  * Licensed under Apache License v2.0.  See the file "LICENSE" for more
@@ -5845,11 +5845,6 @@ pwg_unppdize_name(const char *ppd,       /* I - PPD keyword */
        nodash = 1;
       }
     }
-    else
-    {
-      *ptr++ = *ppd;
-      nodash = 0;
-    }
 
     if (nodash == 0)
     {