Compare View
Commits (2)
-
Pesquisa sei 3.0.0 Correção de Segurança See merge request !11
Showing
2 changed files
Show diff stats
sei/web/modulos/pesquisa/md_pesq_processo_exibe_arquivo.php
sei/web/modulos/pesquisa/md_pesq_processo_exibir.php
| ... | ... | @@ -20,7 +20,6 @@ try { |
| 20 | 20 | // InfraDebug::getInstance()->setBolDebugInfra(true); |
| 21 | 21 | // InfraDebug::getInstance()->limpar(); |
| 22 | 22 | ////////////////////////////////////////////////////////////////////////////// |
| 23 | - | |
| 24 | 23 | MdPesqConverteURI::converterURI(); |
| 25 | 24 | MdPesqPesquisaUtil::valiadarLink(); |
| 26 | 25 | |
| ... | ... | @@ -731,13 +730,7 @@ function inicializar(){ |
| 731 | 730 | |
| 732 | 731 | <?if ($bolGeracaoOK){?> |
| 733 | 732 | |
| 734 | - | |
| 735 | - <!-- | |
| 736 | - //window.open('<?=SessaoSEIExterna::getInstance()->assinarLink('processo_exibe_arquivo.php?id_acesso_externo='.$_GET['id_acesso_externo'].'&acao_externa=usuario_externo_exibir_arquivo&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf');?>'); | |
| 737 | - --> | |
| 738 | - | |
| 739 | - window.open('<?=SessaoSEIExterna::getInstance()->assinarLink('md_pesq_processo_exibe_arquivo.php?acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf');?>'); | |
| 740 | - | |
| 733 | + window.open('<?=SessaoSEI::getInstance()->assinarLink('md_pesq_processo_exibe_arquivo.php?'.MdPesqCriptografia::criptografa('acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf'));?>'); | |
| 741 | 734 | |
| 742 | 735 | <?}?> |
| 743 | 736 | |
| ... | ... | @@ -859,7 +852,7 @@ if($bolGeracaoOK){ |
| 859 | 852 | <script> |
| 860 | 853 | if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){ |
| 861 | 854 | |
| 862 | - window.open('<?=SessaoSEIExterna::getInstance()->assinarLink('md_pesq_processo_exibe_arquivo.php?acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf');?>'); | |
| 855 | + window.open('<?=SessaoSEI::getInstance()->assinarLink('md_pesq_processo_exibe_arquivo.php?'.MdPesqCriptografia::criptografa('acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf'));?>'); | |
| 863 | 856 | <? |
| 864 | 857 | if($bolCaptchaGerarPdf){ |
| 865 | 858 | ?> | ... | ... |