Skip to content

Commit

Permalink
Merge branch 'hotfix/htmlentities'
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosescri committed Nov 4, 2015
2 parents 8b9f3da + 675942a commit 1236812
Show file tree
Hide file tree
Showing 47 changed files with 70 additions and 86 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
localconfig.json
node_modules
var/connect/*.tgz
var/connect/*.tgz
tmp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Adminhtml_Log_View extends Mage_Adminhtml_Block_Widget_Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Adminhtml_Map_Additional extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Block/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Integration extends Mage_Core_Block_Abstract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Buttons_Generate extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Buttons_ViewLog extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Panel_Datetime extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Panel_Description extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Panel_File extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Panel_LayerDescription extends Doofinder_Feed_Block_Settings_Panel_Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category blocks
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Block_Settings_Panel_Message extends Mage_Adminhtml_Block_System_Config_Form_Field
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Doofinder/Feed/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Helpers
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Data helper for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Helper_Data extends Mage_Core_Helper_Abstract
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Doofinder/Feed/Helper/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Helpers
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Log helper for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Helper_Log extends Mage_Core_Helper_Abstract
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Doofinder/Feed/Helper/Tax.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Helpers
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Tax helper for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Helper_Tax extends Mage_Tax_Helper_Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Adminhtml_System_Config_Backend_Cron extends Mage_Core_Model_Config_Data {
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Doofinder/Feed/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Config model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Config extends Mage_Core_Model_Config_Data
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Model/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Cron extends Mage_Core_Model_Abstract {
Expand Down
17 changes: 2 additions & 15 deletions app/code/community/Doofinder/Feed/Model/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Generator model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
if (!defined('DS'))
Expand Down Expand Up @@ -736,19 +736,6 @@ protected function _getFieldsMap()
return $this->_fieldMap;
}

protected function _cleanFieldValue($field)
{
// http://stackoverflow.com/questions/4224141/php-removing-invalid-utf-8-characters-in-xml-using-filter
$valid_utf8 = '/([\x09\x0A\x0D\x20-\x7E]|[\xC2-\xDF][\x80-\xBF]|\xE0[\xA0-\xBF][\x80-\xBF]|[\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}|\xED[\x80-\x9F][\x80-\xBF]|\xF0[\x90-\xBF][\x80-\xBF]{2}|[\xF1-\xF3][\x80-\xBF]{3}|\xF4[\x80-\x8F][\x80-\xBF]{2})|./x';

$field = preg_replace('#<br(\s?/)?>#i', ' ', $field);
$field = strip_tags($field);
$field = preg_replace('/[ ]{2,}/', ' ', $field);
$field = trim($field);

return preg_replace($valid_utf8, '$1', $field);
}

protected function _stopOnException(Exception $e)
{
Mage::logError($e->getMessage());
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Model/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Log extends Mage_Core_Model_Abstract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Abstract Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Abstract extends Varien_Object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Associated Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Associated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Bundle Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Configurable Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Configurable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Downloadable Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Downloadable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Grouped Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Grouped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Simple Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Simple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

/**
* Virtual Product Map Model for Doofinder Feed
*
* @version 1.5.9
* @version 1.5.10
* @package Doofinder_Feed
*/
class Doofinder_Feed_Model_Map_Product_Virtual
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Model/Mysql4/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Mysql4_Cron extends Mage_Core_Model_Mysql4_Abstract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Mysql4_Cron_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Model/Mysql4/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Doofinder/Feed/Model/Observers/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* @category Models
* @package Doofinder_Feed
* @version 1.5.9
* @version 1.5.10
*/

class Doofinder_Feed_Model_Observers_Feed
Expand Down
Loading

0 comments on commit 1236812

Please sign in to comment.