summaryrefslogtreecommitdiff
path: root/print/cups/files/patch-cgi-bin_var.c
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2024-06-21 16:40:23 +0200
committerTijl Coosemans <tijl@FreeBSD.org>2024-06-21 16:46:26 +0200
commitcf99a48a1c95d106f5d09a91507b20c536cd894b (patch)
treee821a56d1a1b3bfc501ff1cd51945a2536cfc85c /print/cups/files/patch-cgi-bin_var.c
parentdatabases/opendbviewer: Update to 1.2.0 (diff)
print/cups: Fix checkboxes in the web interface
Add a patch so checkboxes aren't always off when submitting forms. PR: 279883
Diffstat (limited to '')
-rw-r--r--print/cups/files/patch-cgi-bin_var.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/print/cups/files/patch-cgi-bin_var.c b/print/cups/files/patch-cgi-bin_var.c
new file mode 100644
index 000000000000..60ec02c16ac3
--- /dev/null
+++ b/print/cups/files/patch-cgi-bin_var.c
@@ -0,0 +1,11 @@
+--- cgi-bin/var.c.orig 2024-06-18 11:11:05 UTC
++++ cgi-bin/var.c
+@@ -191,7 +191,7 @@ cgiGetCheckbox(const char *name) /* I - Name of form f
+ int ret; /* Return value */
+
+
+- ret = value && !_cups_strcasecmp(value, "checkbox");
++ ret = value && !_cups_strcasecmp(value, "on");
+
+ if (!ret && value)
+ {