Skip to content

Commit

Permalink
Fixed issue #13628: Unable to import responses from archive - fix sec…
Browse files Browse the repository at this point in the history
…urity (#1056)
  • Loading branch information
TonisOrmisson committed Apr 24, 2018
1 parent fe5f9d6 commit 5f32b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/admin/import_helper.php
Expand Up @@ -2113,10 +2113,10 @@ function XMLImportResponses($sFullFilePath, $iSurveyID, $aFieldReMap = array())
$results = [];
$results['responses'] = 0;

libxml_disable_entity_loader( false ); // fixing #13628

libxml_disable_entity_loader( false );
$oXMLReader = new XMLReader();
$oXMLReader->open($sFullFilePath);
libxml_disable_entity_loader( true );
$DestinationFields = Yii::app()->db->schema->getTable($survey->responsesTableName)->getColumnNames();
while ($oXMLReader->read()) {
if ($oXMLReader->name === 'LimeSurveyDocType' && $oXMLReader->nodeType == XMLReader::ELEMENT) {
Expand Down

0 comments on commit 5f32b43

Please sign in to comment.