Commit 3a0fa2d65caefc9b15f11ba3ad59efbbe7553f55

Authored by elias.mussi@planejamento.gov.br
1 parent ee049b19
Exists in master and in 1 other branch 3.1

problemas das barras nas variaveis resolvido, santo mysql5 88888

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@55 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
ws/set_software.php
... ... @@ -159,7 +159,7 @@ if ($v_tripa_variaveis_coletadas<>'')
159 159 VALUES ('".$te_node_address."',
160 160 '".$id_so."',
161 161 '".$v_achei."',
162   - '".trim($v_array_variavel_ambiente_tmp[1])."')";
  162 + '".mysql_real_escape_string($v_array_variavel_ambiente_tmp[1])."')";
163 163 $result = mysql_query($query);
164 164 }
165 165 }
... ... @@ -167,4 +167,4 @@ if ($v_tripa_variaveis_coletadas<>'')
167 167  
168 168  
169 169 echo '<?xml version="1.0" encoding="iso-8859-1" ?><STATUS>OK</STATUS>';
170   -?>
171 170 \ No newline at end of file
  171 +?>
... ...