When comma is found inside certificate data the function LSNepomuceno\LaravelA1PdfSign\Sign\ValidatePdfSignature::processDataToInfo throws an Undefined array key 1 because of:
$data = explode(', ', $data);
It can be removed by using preg_split like:
/** it allows to split by "," except when "," inside of quoutes */
$data = preg_split('/\s*,\s*(?=(?:[^"]*"[^"]*")*[^"]*$)/', trim($data));
When comma is found inside certificate data the function
LSNepomuceno\LaravelA1PdfSign\Sign\ValidatePdfSignature::processDataToInfo
throws anUndefined array key 1
because of:It can be removed by using
preg_split
like:For example:
the function:
explode(", ", $data)
will return and array separated in[["street" => "AV. HIDALGO 77"], [" COL. GUERRERO"]]
.When expected is:
[["street" => "AV. HIDALGO 77, COL. GUERRERO"]]
This PR closes #101