Commit 4f0aa56baad152551f33d5a69e795bb9cd969667
1 parent
e494d1cb
Exists in
master
and in
7 other branches
Correção na aplicação de expressões em classes utilizando aspas duplas em ambiente windows
Showing
3 changed files
with
3 additions
and
2 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/classe_alteraclasse.php
@@ -199,7 +199,7 @@ class Alteraclasse | @@ -199,7 +199,7 @@ class Alteraclasse | ||
199 | */ | 199 | */ |
200 | function alteraclasses($ids,$nomes,$exps,$base64="nao",$minScales="",$maxScales="") | 200 | function alteraclasses($ids,$nomes,$exps,$base64="nao",$minScales="",$maxScales="") |
201 | { | 201 | { |
202 | - if($base64 == "sim"){ | 202 | + if($base64 == "sim"){ |
203 | //$ids = base64_decode($ids); | 203 | //$ids = base64_decode($ids); |
204 | //$nomes = base64_decode($nomes); | 204 | //$nomes = base64_decode($nomes); |
205 | //$exps = base64_decode($exps); | 205 | //$exps = base64_decode($exps); |
classesphp/sani_request.php
@@ -22,7 +22,8 @@ if (isset($_POST)){ | @@ -22,7 +22,8 @@ if (isset($_POST)){ | ||
22 | //var_dump( $_POST["cpaint_argument"]);exit; | 22 | //var_dump( $_POST["cpaint_argument"]);exit; |
23 | $argumento_ = $_POST["cpaint_argument"][0]; | 23 | $argumento_ = $_POST["cpaint_argument"][0]; |
24 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ | 24 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ |
25 | - $argumento_ = str_replace("\\\"","",$argumento_); | 25 | + //$argumento_ = str_replace("\\\"","",$argumento_); |
26 | + $argumento_ = str_replace("\"","",$argumento_); | ||
26 | } | 27 | } |
27 | else{ | 28 | else{ |
28 | $argumento_ = str_replace("\"","",$argumento_); | 29 | $argumento_ = str_replace("\"","",$argumento_); |