From b63612f8accc3b03ba3295dbdf30997eda98bf54 Mon Sep 17 00:00:00 2001
From: sparkyx
Date: Tue, 5 Aug 2025 09:55:44 +0200
Subject: [PATCH] minimal version PHP 8.2
---
html/install.php | 6 +++---
include/otp-link.php | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/html/install.php b/html/install.php
index 7e16fd9d9..a8ac84009 100644
--- a/html/install.php
+++ b/html/install.php
@@ -382,10 +382,10 @@ if (!defined('PHP_VERSION_ID')) {
define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 ));
}
-if ( PHP_VERSION_ID < 80000) {
- echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 8.0");
+if ( PHP_VERSION_ID < 82000) {
+ echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 8.2");
echo '';
- printf(_("Cette version nécessite au moins une version supérieure ou égale à 8.0"));
+ printf(_("Cette version nécessite au moins une version supérieure ou égale à 8.2"));
echo '
';
$fatal++;
} else {
diff --git a/include/otp-link.php b/include/otp-link.php
index 5b6ad44a0..b55e146ca 100644
--- a/include/otp-link.php
+++ b/include/otp-link.php
@@ -204,6 +204,7 @@ try {
if ( DEBUGNOALYSS > 1) { echo "code attendu",$authenticator->code();}
echo '
';
+
printf('
', base64_encode($result->getString()));
} catch (Exception $exc) {