Blame SOURCES/0001-Fix-cupsGetPPD-with-IPP-print-queues-STR-4725.patch

a80764
diff -up cups-1.6.3/cups/util.c.download-ppd cups-1.6.3/cups/util.c
a80764
--- cups-1.6.3/cups/util.c.download-ppd	2020-02-11 13:36:26.923903558 +0100
a80764
+++ cups-1.6.3/cups/util.c	2020-02-11 13:38:25.473972412 +0100
a80764
@@ -1712,10 +1712,9 @@ cups_get_printer_uri(
a80764
       device_uri = attr->values[0].string.text;
a80764
 
a80764
     if (device_uri &&
a80764
-        (!strncmp(device_uri, "ipp://", 6) ||
a80764
-         !strncmp(device_uri, "ipps://", 7) ||
a80764
-         ((strstr(device_uri, "._ipp.") != NULL ||
a80764
-           strstr(device_uri, "._ipps.") != NULL) &&
a80764
+        (((!strncmp(device_uri, "ipp://", 6) || !strncmp(device_uri, "ipps://", 7)) &&
a80764
+	  (strstr(device_uri, "/printers/") != NULL || strstr(device_uri, "/classes/") != NULL)) ||
a80764
+         ((strstr(device_uri, "._ipp.") != NULL || strstr(device_uri, "._ipps.") != NULL) &&
a80764
           !strcmp(device_uri + strlen(device_uri) - 5, "/cups"))))
a80764
     {
a80764
      /*