ports/print/cups/files/patch-cgi-bin_var.c
Tijl Coosemans cf99a48a1c print/cups: Fix checkboxes in the web interface
Add a patch so checkboxes aren't always off when submitting forms.

PR:		279883
2024-06-21 16:46:26 +02:00

12 lines
313 B
C

--- 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)
{