git: 16b4e8bf9187 - main - devel/phorgeit-phorge: Fix error in MFA QR code generation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Dec 2025 14:38:26 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=16b4e8bf91875cf8c09b9cdb8550cbc19adeeb38
commit 16b4e8bf91875cf8c09b9cdb8550cbc19adeeb38
Author: Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2025-12-05 14:36:17 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2025-12-05 14:36:17 +0000
devel/phorgeit-phorge: Fix error in MFA QR code generation
---
devel/phorgeit-phorge/Makefile | 1 +
.../files/patch-externals_phpqrcode_phpqrcode.php | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
diff --git a/devel/phorgeit-phorge/Makefile b/devel/phorgeit-phorge/Makefile
index 9549767581a1..e7c15c82d865 100644
--- a/devel/phorgeit-phorge/Makefile
+++ b/devel/phorgeit-phorge/Makefile
@@ -1,5 +1,6 @@
PORTNAME= phorge
PORTVERSION= 2025.18
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
PKGNAMEPREFIX= phorgeit
diff --git a/devel/phorgeit-phorge/files/patch-externals_phpqrcode_phpqrcode.php b/devel/phorgeit-phorge/files/patch-externals_phpqrcode_phpqrcode.php
new file mode 100644
index 000000000000..323c802fda94
--- /dev/null
+++ b/devel/phorgeit-phorge/files/patch-externals_phpqrcode_phpqrcode.php
@@ -0,0 +1,16 @@
+--- externals/phpqrcode/phpqrcode.php.orig 2025-05-01 22:56:37 UTC
++++ externals/phpqrcode/phpqrcode.php
+@@ -4396,11 +4396,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;
+ }