git: cf99a48a1c95 - main - print/cups: Fix checkboxes in the web interface
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jun 2024 14:48:15 UTC
The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=cf99a48a1c95d106f5d09a91507b20c536cd894b commit cf99a48a1c95d106f5d09a91507b20c536cd894b Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2024-06-21 14:40:23 +0000 Commit: Tijl Coosemans <tijl@FreeBSD.org> CommitDate: 2024-06-21 14:46:26 +0000 print/cups: Fix checkboxes in the web interface Add a patch so checkboxes aren't always off when submitting forms. PR: 279883 --- print/cups/Makefile | 1 + print/cups/files/patch-cgi-bin_var.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/print/cups/Makefile b/print/cups/Makefile index 667bc609cf0f..180f54e36891 100644 --- a/print/cups/Makefile +++ b/print/cups/Makefile @@ -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 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) + {