mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Catch Value_Error exceptions too when parsing module data.
(cherry picked from commit 8acb459029945306b9aa2aafc8d46a24829e462f)
This commit is contained in:
parent
3b3039ea31
commit
02ea140487
@ -526,7 +526,7 @@ Pandora_Module::getXml () {
|
|||||||
try {
|
try {
|
||||||
data_clean = strreplace (this->getDataOutput (data),
|
data_clean = strreplace (this->getDataOutput (data),
|
||||||
"%", "%%" );
|
"%", "%%" );
|
||||||
} catch (Output_Error e) {
|
} catch (Module_Exception e) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -538,7 +538,7 @@ Pandora_Module::getXml () {
|
|||||||
data_clean = strreplace (this->getDataOutput (data), "%", "%%" );
|
data_clean = strreplace (this->getDataOutput (data), "%", "%%" );
|
||||||
module_xml += data_clean;
|
module_xml += data_clean;
|
||||||
|
|
||||||
} catch (Output_Error e) {
|
} catch (Module_Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
module_xml += "]]></data></log_module>";
|
module_xml += "]]></data></log_module>";
|
||||||
@ -741,7 +741,7 @@ Pandora_Module::getXml () {
|
|||||||
try {
|
try {
|
||||||
data_clean = strreplace (this->getDataOutput (data),
|
data_clean = strreplace (this->getDataOutput (data),
|
||||||
"%", "%%" );
|
"%", "%%" );
|
||||||
} catch (Output_Error e) {
|
} catch (Module_Exception e) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -760,7 +760,7 @@ Pandora_Module::getXml () {
|
|||||||
module_xml += "\t<data><![CDATA[";
|
module_xml += "\t<data><![CDATA[";
|
||||||
module_xml += data_clean;
|
module_xml += data_clean;
|
||||||
module_xml += "]]></data>\n";
|
module_xml += "]]></data>\n";
|
||||||
} catch (Output_Error e) {
|
} catch (Module_Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user