Commit cb732f1974a5545112ca6568e18f4c380d0c64c6
Exists in
master
Merge pull request #121 from ieducativa/escapa-endereco-externo
Escapado strings no cadastro de endereço externo.
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
ieducar/intranet/include/pessoa/clsEnderecoExterno.inc.php
... | ... | @@ -88,13 +88,13 @@ class clsEnderecoExterno |
88 | 88 | $this->idtlog = $idtlog; |
89 | 89 | } |
90 | 90 | |
91 | - $this->logradouro = $logradouro; | |
91 | + $this->logradouro = pg_escape_string($logradouro); | |
92 | 92 | $this->numero = $numero; |
93 | 93 | $this->letra = $letra; |
94 | - $this->complemento = $complemento; | |
95 | - $this->bairro = $bairro; | |
94 | + $this->complemento = pg_escape_string($complemento); | |
95 | + $this->bairro = pg_escape_string($bairro); | |
96 | 96 | $this->cep = $cep; |
97 | - $this->cidade = $cidade; | |
97 | + $this->cidade = pg_escape_string($cidade); | |
98 | 98 | |
99 | 99 | $objSiglaUf = new clsUf($sigla_uf); |
100 | 100 | if ($objPessoa->detalhe()) { | ... | ... |