summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorZdenek Dohnal <zdohnal@redhat.com>2020-06-08 14:44:24 +0200
committerZdenek Dohnal <zdohnal@redhat.com>2020-09-14 11:14:46 +0200
commitf961941241edb537d884248bf1f9a496202049b4 (patch)
treef11e9ef35b22d362a38f790f868a211ca54e0561 /cgi-bin
parentb76a7f5a77b121518ed0ef6fe3abb979598ce7be (diff)
Web interface: Set the actual device uri, not device_uri|make_model string from html form
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/admin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c
index f087809f7..1683f987b 100644
--- a/cgi-bin/admin.c
+++ b/cgi-bin/admin.c
@@ -763,6 +763,13 @@ do_am_printer(http_t *http, /* I - HTTP connection */
cgiSetVariable("TEMPLATE_NAME", template);
}
+
+ /*
+ * Set DEVICE_URI to the actual device uri, without make and model from
+ * html form.
+ */
+
+ cgiSetVariable("DEVICE_URI", var);
}
}