From f7c59280cac6a41079aaf54829b27e9f77e308e5 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Wed, 30 Jul 2014 16:48:31 -0400 Subject: [PATCH] =?UTF-8?q?BUG-15495=20c=C3=B3digo=20basura=20en=20editor?= =?UTF-8?q?=20html=20de=20documentos=20de=20salida=20IMPROVEMENT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -It don't have the functionality. -A validation was added for change tag of grid in file processes_Ajax.php --- .../methods/processes/processes_Ajax.php | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/workflow/engine/methods/processes/processes_Ajax.php b/workflow/engine/methods/processes/processes_Ajax.php index d771d9050..7f70d7ddd 100755 --- a/workflow/engine/methods/processes/processes_Ajax.php +++ b/workflow/engine/methods/processes/processes_Ajax.php @@ -489,23 +489,19 @@ try { // $oHeadPublisher->addScriptCode($jscriptCode); $_REQUEST['fcontent'] = $fcontent; - preg_match('/\@(?:([\>])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$matches); - foreach ($matches as $key => $value) { - if ($key % 3 == 0) { - preg_match('/(\!--)'.$value.'(-->)/',$fcontent, $match); - if (count($match)==0) { - $fcontent = preg_replace('/'.$value.'/','',$fcontent); - } + preg_match_all('/\@(?:([\>])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$matches); + foreach ($matches[0] as $key => $value) { + preg_match('/(\!--)'.$value.'(-->)/',$fcontent, $match); + if (count($match)==0) { + $fcontent = preg_replace ('/'.$value.'/i','',$fcontent); } } - preg_match('/\@(?:([\<])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$matches); - foreach ($matches as $key => $value) { - if ($key % 3 == 0) { + preg_match_all('/\@(?:([\<])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$matches); + foreach ($matches[0] as $key => $value) { preg_match('/(\!--)'.$value.'(-->)/',$fcontent, $match); if (count($match)==0) { - $fcontent = preg_replace('/'.$value.'/','',$fcontent); + $fcontent = preg_replace ('/'.$value.'/i','',$fcontent); } - } } //if($extion[count($extion)-1]=='html' || $extion[count($extion)-1]=='txt'){