From 612d36f30c0ff82616217d0314e1ecc9256098cf Mon Sep 17 00:00:00 2001 From: Rafael Tavares Juliani Date: Thu, 19 Oct 2023 03:37:44 -0300 Subject: [PATCH] Update index.php --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index c1782f6..c9682cb 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ function reduzirArk($tamanho, $pedacos) { $NAAN = $pedacos[0]; - for($i=1; $i <= $tamanho; $i++){ + for($i=1; $i < $tamanho; $i++){ $ark_sem_NAAN.= "/".$pedacos[$i]; @@ -79,6 +79,10 @@ function direcionar_ark() { $ark_sem_NAAN = $resp[1]; + if($ark_sem_NAAN == ""){ + break; + } + $len_ark_sem_NAAN = strlen($ark_sem_NAAN); $tem_interrogacao = false;