git: 30a5665b92bf - main - devel/phabricator: Fix error in MFA QR code generation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Dec 2025 14:38:25 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=30a5665b92bf3285babb23c3a24d807874e00b5c
commit 30a5665b92bf3285babb23c3a24d807874e00b5c
Author: Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2025-12-05 14:26:39 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2025-12-05 14:27:42 +0000
devel/phabricator: Fix error in MFA QR code generation
---
devel/phabricator/Makefile | 2 +-
.../files/patch-externals_phpqrcode_phpqrcode.php | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile
index 013b838d76bc..4d30b32e4ae1 100644
--- a/devel/phabricator/Makefile
+++ b/devel/phabricator/Makefile
@@ -1,6 +1,6 @@
PORTNAME= phabricator
PORTVERSION= 20211218
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= devel
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
diff --git a/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php b/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php
new file mode 100644
index 000000000000..2a884bee74e8
--- /dev/null
+++ b/devel/phabricator/files/patch-externals_phpqrcode_phpqrcode.php
@@ -0,0 +1,16 @@
+--- externals/phpqrcode/phpqrcode.php.orig 2025-12-05 14:17:54 UTC
++++ externals/phpqrcode/phpqrcode.php
+@@ -2945,11 +2945,11 @@
+ if($col >= $this->rsblocks[0]->dataLength) {
+ $row += $this->b1;
+ }
+- $ret = $this->rsblocks[$row]->data[$col];
++ $ret = $this->rsblocks[$row]->data[(int) $col];
+ } else if($this->count < $this->dataLength + $this->eccLength) {
+ $row = ($this->count - $this->dataLength) % $this->blocks;
+ $col = ($this->count - $this->dataLength) / $this->blocks;
+- $ret = $this->rsblocks[$row]->ecc[$col];
++ $ret = $this->rsblocks[$row]->ecc[(int) $col];
+ } else {
+ return 0;
+ }