summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-09-12 23:12:14 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-09-12 23:12:14 +0200
commite1f99b557d551e85fdd7231a02e36b4ed317a4d5 (patch)
tree6858e7a4c8becbb97432dd206a466e6a37f1c15a /vendor
parent12d0d0f4e699fc6de228e5b4eb994276b34324a3 (diff)
Revert "also make go to previous article shortcuts fuzzier, #847"
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