<rdar://problem/23133393>, <rdar://problem/23133466>,
<rdar://problem/23133833>, <rdar://problem/23133998>,
<rdar://problem/23134228>, <rdar://problem/23134299>,
- <rdar://problem/23134356>, <rdar://problem/23134415>)
+ <rdar://problem/23134356>, <rdar://problem/23134415>,
+ <rdar://problem/23134506>)
- The cupsGetPPD* functions did not work with IPP printers (STR #4725)
- Some older HP LaserJet printers need a delayed close when printing
using the libusb-based USB backend (STR #4549)
strlcpy(uri, path, sizeof(uri));
+ if ((uriptr = strchr(uri, '?')) != NULL)
+ *uriptr = '\0'; /* Drop trailing query string */
+
+ if ((uriptr = uri + strlen(uri) - 1) > uri && *uriptr == '/')
+ *uriptr = '\0'; /* Remove trailing '/' */
+
if (!strncmp(uri, "/printers/", 10) ||
!strncmp(uri, "/classes/", 9))
{
*uriptr = '\0';
}
- if ((uriptr = strchr(uri, '?')) != NULL)
- *uriptr = '\0'; /* Drop trailing query string */
-
- if ((uriptr = uri + strlen(uri) - 1) > uri && *uriptr == '/')
- *uriptr = '\0'; /* Remove trailing '/' */
-
/*
* Loop through the list of locations to find a match...
*/