Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Removed LIBXML_NOENT and and LIBXML_NONET from loadXML options, fix for https://github.com/givanz/Vvveb/security/advisories/GHSA-rfxr-4xpm-wrp7 reported by https://github.com/CyberWarrior9

givanz86f7128a18ed
diff --git a/system/import/xml.php b/system/import/xml.php
index 729e12d..9b7fe74 100755
--- a/system/import/xml.php
+++ b/system/import/xml.php
@@ -37,13 +37,11 @@ class Xml {
private $idsMap;
private $importXMLOptions = LIBXML_NOBLANKS |
- LIBXML_COMPACT |
- LIBXML_NOCDATA |
- LIBXML_NOENT |
- LIBXML_NONET |
- LIBXML_PARSEHUGE |
- LIBXML_NOWARNING |
- LIBXML_BIGLINES;
+ LIBXML_COMPACT |
+ LIBXML_NOCDATA |
+ LIBXML_PARSEHUGE |
+ LIBXML_NOWARNING |
+ LIBXML_BIGLINES;
private $tableOrder = [];
@@ -87,7 +85,7 @@ class Xml {
$q = '"';
}
- $stmt = $this->db->execute("SELECT * FROM $q$tableName$q", [], []);
+ $stmt = $this->db->query("SELECT * FROM $q$tableName$q");
//$result = $stmt->get_result();
while ($row = $this->db->fetchArray($stmt)) {
@@ -144,7 +142,7 @@ class Xml {
break;
- case LIBXML_ERR_ERROR:
+ case LIBXML_ERR_ERROR:
$return .= "Error $error->code: ";
break;