|
|
98e5d40 |
diff -up cups-1.4.2/cgi-bin/ipp-var.c.str3436 cups-1.4.2/cgi-bin/ipp-var.c
|
|
|
98e5d40 |
--- cups-1.4.2/cgi-bin/ipp-var.c.str3436 2009-11-09 23:01:17.000000000 +0000
|
|
|
98e5d40 |
+++ cups-1.4.2/cgi-bin/ipp-var.c 2009-12-08 12:19:01.988500453 +0000
|
|
|
98e5d40 |
@@ -333,7 +333,7 @@ cgiMoveJobs(http_t *http, /* I - Co
|
|
|
98e5d40 |
NULL, job_uri);
|
|
|
98e5d40 |
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
|
|
|
98e5d40 |
"requested-attributes", NULL, "job-printer-uri");
|
|
|
98e5d40 |
-
|
|
|
98e5d40 |
+
|
|
|
98e5d40 |
if ((response = cupsDoRequest(http, request, "/")) != NULL)
|
|
|
98e5d40 |
{
|
|
|
98e5d40 |
if ((attr = ippFindAttribute(response, "job-printer-uri",
|
|
|
98e5d40 |
@@ -926,7 +926,7 @@ cgiRewriteURL(const char *uri, /* I - C
|
|
|
98e5d40 |
ishttps ? "https" : "http",
|
|
|
98e5d40 |
userpass, hostname, port, resource);
|
|
|
98e5d40 |
else
|
|
|
98e5d40 |
- snprintf(url, urlsize, "%s://%s:%d%s",
|
|
|
98e5d40 |
+ snprintf(url, urlsize, "%s://%s:%d%s",
|
|
|
98e5d40 |
ishttps ? "https" : "http",
|
|
|
98e5d40 |
hostname, port, resource);
|
|
|
98e5d40 |
}
|
|
|
98e5d40 |
@@ -1518,7 +1518,11 @@ cgiShowJobs(http_t *http, /* I - Co
|
|
|
98e5d40 |
*/
|
|
|
98e5d40 |
|
|
|
98e5d40 |
if (dest)
|
|
|
98e5d40 |
+ {
|
|
|
98e5d40 |
snprintf(val, sizeof(val), "/%s/%s", section, dest);
|
|
|
98e5d40 |
+ cgiSetVariable("PRINTER_NAME", dest);
|
|
|
98e5d40 |
+ cgiSetVariable("PRINTER_URI_SUPPORTED", val);
|
|
|
98e5d40 |
+ }
|
|
|
98e5d40 |
else
|
|
|
98e5d40 |
strlcpy(val, "/jobs/", sizeof(val));
|
|
|
98e5d40 |
|