summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
Diffstat (limited to 'vendor')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Filter/Attribute.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Attribute.php b/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Attribute.php
index 684dbf7ad..1c5842df4 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Attribute.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Filter/Attribute.php
@@ -79,7 +79,7 @@ class Attribute
'cite' => array(),
'time' => array('datetime'),
'abbr' => array('title'),
- 'iframe' => array('width', 'height', 'frameborder', 'src', 'allowfullscreen'),
+ 'iframe' => array('width', 'height', 'frameborder', 'src'),
'q' => array('cite')
);
@@ -227,6 +227,7 @@ class Attribute
* @var array
*/
private $filters = array(
+ 'filterEmptyAttribute',
'filterAllowedAttribute',
'filterIntegerAttribute',
'rewriteAbsoluteUrl',
@@ -280,6 +281,20 @@ class Attribute
}
/**
+ * Return true if the value is not empty (remove empty attributes)
+ *
+ * @access public
+ * @param string $tag Tag name
+ * @param string $attribute Attribute name
+ * @param string $value Attribute value
+ * @return boolean
+ */
+ public function filterEmptyAttribute($tag, $attribute, $value)
+ {
+ return $value !== '';
+ }
+
+ /**
* Return true if the value is allowed (remove not allowed attributes)
*
* @access public