Commit 04c1cf58fe719dac50f9b633629456df86fefbf0
1 parent
f431b6b9
Exists in
master
and in
19 other branches
Correção de erro StartTag invalid element name in Entity
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
rn/ExpedirProcedimentoRN.php
@@ -976,7 +976,9 @@ class ExpedirProcedimentoRN extends InfraRN { | @@ -976,7 +976,9 @@ class ExpedirProcedimentoRN extends InfraRN { | ||
976 | $objComponenteDigital = $this->consultarComponenteDigital($objDocumentoDTO->getDblIdDocumento()); | 976 | $objComponenteDigital = $this->consultarComponenteDigital($objDocumentoDTO->getDblIdDocumento()); |
977 | $hashDoComponenteDigitalAnterior = (isset($objComponenteDigital)) ? $objComponenteDigital->getStrHashConteudo() : null; | 977 | $hashDoComponenteDigitalAnterior = (isset($objComponenteDigital)) ? $objComponenteDigital->getStrHashConteudo() : null; |
978 | if(isset($hashDoComponenteDigitalAnterior) && ($hashDoComponenteDigitalAnterior <> $hashDoComponenteDigital)){ | 978 | if(isset($hashDoComponenteDigitalAnterior) && ($hashDoComponenteDigitalAnterior <> $hashDoComponenteDigital)){ |
979 | - $hashDoComponenteDigital = $arrInformacaoArquivo['CONTEUDO_LEGADO']; | 979 | + $strConteudoAssinaturaLegado = $arrInformacaoArquivo['CONTEUDO_LEGADO']; |
980 | + $hashDoComponenteDigital = hash($strAlgoritmoHash, $strConteudoAssinaturaLegado, true); | ||
981 | + $hashDoComponenteDigital = base64_encode($hashDoComponenteDigital); | ||
980 | } | 982 | } |
981 | 983 | ||
982 | //TODO: Revisar tal implementao para atender a gerao de hash de arquivos grandes | 984 | //TODO: Revisar tal implementao para atender a gerao de hash de arquivos grandes |