BUG-15495 código basura en editor html de documentos de salida SOLVED

-It don't have the functionality.
-A validation was added for change tag of grid in file processes_Ajax.php
This commit is contained in:
Marco Antonio Nina
2014-07-30 11:36:04 -04:00
parent 8bf52449c4
commit 788a21051f

View File

@@ -489,20 +489,20 @@ try {
// $oHeadPublisher->addScriptCode($jscriptCode);
$_REQUEST['fcontent'] = $fcontent;
preg_match('/\@(?:([\>])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$coincidencias);
foreach ($coincidencias as $key => $value) {
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, $coincidencia);
if (count($coincidencia)==0) {
preg_match('/(\!--)'.$value.'(-->)/',$fcontent, $match);
if (count($match)==0) {
$fcontent = preg_replace('/'.$value.'/','<!--'.$value.'-->',$fcontent);
}
}
}
preg_match('/\@(?:([\<])([a-zA-Z\_]\w*)|([a-zA-Z\_][\w\-\>\:]*)\(((?:[^\\\\\)]*(?:[\\\\][\w\W])?)*)\))((?:\s*\[[\'"]?\w+[\'"]?\])+)?/',$fcontent,$coincidencias);
foreach ($coincidencias as $key => $value) {
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, $coincidencia);
if (count($coincidencia)==0) {
preg_match('/(\!--)'.$value.'(-->)/',$fcontent, $match);
if (count($match)==0) {
$fcontent = preg_replace('/'.$value.'/','<!--'.$value.'-->',$fcontent);
}
}