Commit 3b12dc8847ef0d57597f5b3bd5d5591c9ef649d0

Authored by Edmar Moretti
1 parent ce0e8546

Correção do uso do CPAINT, via POST, em ambientes linux

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
classesphp/pega_variaveis.php
... ... @@ -61,7 +61,10 @@ if (isset($_POST))
61 61 {
62 62 foreach($_POST["cpaint_argument"] as $argumento_)
63 63 {
64   - $argumento_ = str_replace("\\\"","",$argumento_);
  64 + if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
  65 + {$argumento_ = str_replace("\\\"","",$argumento_);}
  66 + else
  67 + {$argumento_ = str_replace("\"","",$argumento_);}
65 68 $parametros_ = explode("&",$argumento_);
66 69 foreach($parametros_ as $parametro_)
67 70 {
... ...