From nobody Fri Jun 21 14:48:15 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W5Kwc19rXz5NnbP; Fri, 21 Jun 2024 14:48:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W5Kwc0j30z4qlB; Fri, 21 Jun 2024 14:48:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718981296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KB9Aklk0IRfkKXWQ+kWFAH500fIApnLn77ITXh5VTKI=; b=bxJNg2Ye1FirL7gUZv61XlM0bth5Osb42BDpTg8fHh9tcjSIKa6DjL7zWvhqx7fHI4dMOp 2FKrSvCdnPxuWfXKrPE/hk1d/RaE0yew3xNEbgv/KhTbWOMcx0DGqZrQbazlgkbkfUMA/Z +mrr1vK1+IqhEejQ9ZdphOMOYEKIY8IE0NiHORjL75T4m5YudHjDH8vPnPC4FBp66iiYkd wOprRc4InCmlnU6oG6n4MFAquWT9PqGJPPzrV5K0tNkrmNeyhPrBWpy2e09xQFfntz7GK/ Oi54K1oi8PT6P7S+TC3l+aHivU+z8W4JXPVQ3C4I8UgpohwSwyQ9dZWzv9En8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718981296; a=rsa-sha256; cv=none; b=melPujqzUpeUD2LTFDc6k5pgldNDPcKonxgwOhrjhV+c/afA9UahL7L2QdNpkhbK8RImPF 1YwroCo+aWliK5mRty4nsNizeR0r3UZrDtjdrVqbpZnEY37f1cgWMb8rSDIn5k81kbTzXZ T4MongKgsx8Hv4NBdohv2JuMYnh6qDXHuihOD27f1/xX4L/+nXPnt09OIHecoE/E8FAkuB qNYZ3CAH+uMG7NB996bJ7PBKLpXFoZtsErpMfSD5tpS9IKichwNdF+nZPmXV1w9u69mpBp xzPKqsmxiUgplICoQrqChjD3ocC3g4dn/tUplxhOxfGeuIptkCTlf1eAblB2Mg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718981296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KB9Aklk0IRfkKXWQ+kWFAH500fIApnLn77ITXh5VTKI=; b=a4kcKSJR5JMYGW5YifeYixEVXiL0cdwM1THh0h/r9hBLX91UIpgMLFVHRDfdU2RAfrGcLy xIS6kp9vpSDBBHmvi7c6raSb5mNV4cs0L0FEq8gZ7BMcoQwNLo8b0lJtyJ9nyLC+GVzA0D VkdxM9ZLmnn0XhCmpbN8SDHZ0YfjWnopPeEBUQ8BUfp8iYfjm2R7nPykyWGvUWYjxXpBX8 zd7YlUanYszuLnYIuYmNbqR92HIqYZlF9hMDV1kxtCEJ+UDnwjaM6Rr+2vNFN1C58+pqt8 dXYGS4ETlRg3voFACfMHyy21WbmFLiycnvgiQgr6Vj2v0lY3FGP0ydcg0c2LEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W5Kwc0FDnz1C11; Fri, 21 Jun 2024 14:48:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45LEmF8m079698; Fri, 21 Jun 2024 14:48:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45LEmFGG079695; Fri, 21 Jun 2024 14:48:15 GMT (envelope-from git) Date: Fri, 21 Jun 2024 14:48:15 GMT Message-Id: <202406211448.45LEmFGG079695@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tijl Coosemans Subject: git: cf99a48a1c95 - main - print/cups: Fix checkboxes in the web interface List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tijl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cf99a48a1c95d106f5d09a91507b20c536cd894b Auto-Submitted: auto-generated The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=cf99a48a1c95d106f5d09a91507b20c536cd894b commit cf99a48a1c95d106f5d09a91507b20c536cd894b Author: Tijl Coosemans AuthorDate: 2024-06-21 14:40:23 +0000 Commit: Tijl Coosemans 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) + {