[cups.bugs] [HIGH] STR #2690: cupsEncodeOptions2() not dequoting strings

Michael Sweet msweet at apple.com
Mon Jan 28 14:26:32 PST 2008

[STR Closed w/Resolution]

After further research, the value in the options array should be treated as
an already-dequoted string.  Basically, cupsParseOptions() handles any
higher-level quoting, and in order for the filters to see the same string
on their command-line we need to leave the option values as-is.

The attached patch simplifies the cupsParseOptions() code somewhat, fixes
an issue with octetString (IPP_TAG_STRING) handling (octetString values
need to use the unknown value data, not the string value data), and adds a
new "multivalue" column to the known options array so that
cupsEncodeOptions2() can limit comma delimiting to attributes that need

Link: http://www.cups.org/str.php?L2690
Version: 1.3-current
Fix Version: 1.4-current (r7259)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: str2690.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20080128/a71539e3/attachment.ksh>

More information about the cups-devel mailing list