From b4aefde8859aa7bf3925fc0df8e925a3b250b3f5 Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 13 Apr 2021 00:44:08 +0200 Subject: [PATCH] Remove hexdec() format warning in PHP 8 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 547854c..312e711 100755 --- a/index.php +++ b/index.php @@ -256,7 +256,7 @@ if (badQuery()) { require "phpqrcode.php"; $cheminImage = "temp/" . generateRandomString($fileNameLenght) . ".png"; - QRcode::png($_GET['txt'], $cheminImage, $_GET['redondancy'], $_GET['size'], $_GET['margin'], false, hexdec($_GET['bgColor']), hexdec($_GET['mainColor'])); + QRcode::png($_GET['txt'], $cheminImage, $_GET['redondancy'], $_GET['size'], $_GET['margin'], false, hexdec(substr($_GET['bgColor'], -6)), hexdec(substr($_GET['mainColor'], -6))); ?>