Skip to content

Commit 96df89e

Browse files
committed
Don't add an extra document-format attribute (Issue #1457)
1 parent 762b432 commit 96df89e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Changes in CUPS v2.4.17 (YYYY-MM-DD)
1818
- Fixed notifier logging bug that would result in nul bytes getting into the
1919
log (Issue #1450)
2020
- Fixed possible use-after-free in `cupsdReadClient()` (Issue #1454)
21+
- Fixed a document format bug in the IPP backend (Issue #1457)
2122
- Fixed a bug when then `ippFindXxx` and `ippSetXxx` functions were mixed.
2223

2324

cups/encode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Option encoding routines for CUPS.
33
*
4-
* Copyright © 2020-2024 by OpenPrinting.
4+
* Copyright © 2020-2026 by OpenPrinting.
55
* Copyright © 2007-2019 by Apple Inc.
66
* Copyright © 1997-2007 by Easy Software Products.
77
*
@@ -754,7 +754,7 @@ cupsEncodeOptions2(
754754

755755
op = ippGetOperation(ipp);
756756

757-
if (group_tag == IPP_TAG_OPERATION && (op == IPP_OP_PRINT_JOB || op == IPP_OP_PRINT_URI || op == IPP_OP_SEND_DOCUMENT || op == IPP_OP_SEND_URI))
757+
if (group_tag == IPP_TAG_OPERATION && (op == IPP_OP_PRINT_JOB || op == IPP_OP_PRINT_URI || op == IPP_OP_SEND_DOCUMENT || op == IPP_OP_SEND_URI) && !ippFindAttribute(ipp, "document-format", IPP_TAG_ZERO))
758758
{
759759
/*
760760
* Handle the document format stuff first...

0 commit comments

Comments
 (0)