Skip to content

Commit ef959be

Browse files
committed
Don't add an extra document-format attribute (Issue #1457)
1 parent d3885fe commit ef959be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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-2025 by OpenPrinting.
4+
* Copyright © 2020-2026 by OpenPrinting.
55
* Copyright © 2007-2019 by Apple Inc.
66
* Copyright © 1997-2007 by Easy Software Products.
77
*
@@ -769,7 +769,7 @@ cupsEncodeOptions2(
769769

770770
op = ippGetOperation(ipp);
771771

772-
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))
772+
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))
773773
{
774774
/*
775775
* Handle the document format stuff first...

0 commit comments

Comments
 (0)