print/cups: Fix checkboxes in the web interface
Add a patch so checkboxes aren't always off when submitting forms. PR: 279883
This commit is contained in:
parent
d24b33e19b
commit
cf99a48a1c
@ -1,5 +1,6 @@
|
||||
PORTNAME= cups
|
||||
DISTVERSION= 2.4.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= https://github.com/OpenPrinting/${PORTNAME}/releases/download/v${DISTVERSION}/
|
||||
DISTNAME= ${PORTNAME}-${DISTVERSION}-source
|
||||
|
||||
11
print/cups/files/patch-cgi-bin_var.c
Normal file
11
print/cups/files/patch-cgi-bin_var.c
Normal file
@ -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)
|
||||
{
|
||||
Loading…
x
Reference in New Issue
Block a user