Commit 920363da2d08d9f02c189f02f018caa5532de409
1 parent
82b4c4e6
Exists in
master
and in
7 other branches
Alteração no código incluindo rotina de conversão da string correspondente à URL…
…. Essa modificação foi necessária para evitar problemas com caracteres acentuados no IE 7. A rotina faz a conversão dos caracteres da URL.
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
pacotes/cpaint/cpaint2.inc.js
| @@ -202,6 +202,19 @@ function cpaint() { | @@ -202,6 +202,19 @@ function cpaint() { | ||
| 202 | * @return void | 202 | * @return void |
| 203 | */ | 203 | */ |
| 204 | this.call = function() { | 204 | this.call = function() { |
| 205 | + //incluido por edmar | ||
| 206 | + var sUrl = escape(arguments[0]); | ||
| 207 | + var re = new RegExp("%3F", "g"); | ||
| 208 | + var sUrl = sUrl.replace(re,'?'); | ||
| 209 | + var re = new RegExp("%3D", "g"); | ||
| 210 | + var sUrl = sUrl.replace(re,'='); | ||
| 211 | + var re = new RegExp("%26", "g"); | ||
| 212 | + var sUrl = sUrl.replace(re,'&'); | ||
| 213 | + var re = new RegExp("%3A", "g"); | ||
| 214 | + var sUrl = sUrl.replace(re,':'); | ||
| 215 | + //alert(sUrl) | ||
| 216 | + arguments[0] = sUrl; | ||
| 217 | + // | ||
| 205 | var use_stack = -1; | 218 | var use_stack = -1; |
| 206 | 219 | ||
| 207 | if (config['persistent_connection'] == true | 220 | if (config['persistent_connection'] == true |