mds/net-print/cups/files/cups-1.3.11-str3401-security-1.3v2-regression.patch
2010-02-18 20:41:28 +00:00

28 lines
871 B
Diff

--- cgi-bin/admin.c.ori 2009-10-30 14:07:13.000000000 -0400
+++ cgi-bin/admin.c 2009-10-30 14:06:54.000000000 -0400
@@ -536,6 +536,7 @@
ipp_attribute_t *attr; /* member-uris attribute */
char uri[HTTP_MAX_URI]; /* Device or printer URI */
const char *name, /* Pointer to class name */
+ *op, /* Operation name */
*ptr; /* Pointer to CGI variable */
const char *title; /* Title of page */
static const char * const pattrs[] = /* Requested printer attributes */
@@ -547,6 +548,7 @@
title = cgiText(modify ? _("Modify Class") : _("Add Class"));
+ op = cgiGetVariable("OP");
name = cgiGetVariable("PRINTER_NAME");
if (cgiGetVariable("PRINTER_LOCATION") == NULL)
@@ -572,6 +574,8 @@
*/
cgiClearVariables();
+ if (op)
+ cgiSetVariable("OP", op);
if (name)
cgiSetVariable("PRINTER_NAME", name);