diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-07-25 00:08:06 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-07-25 00:08:06 +0200 |
commit | b655fc74e433df15f61a00963581f2775e9ddbc1 (patch) | |
tree | b000b0eaa2a712380ed99c8bcc85013924dfb92e /tests | |
parent | edab5dd72350785a9fed85d068704381181be791 (diff) |
decode title twice to fix stupid feed authors' mistakes
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/utility/FeedFetcherTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/utility/FeedFetcherTest.php b/tests/unit/utility/FeedFetcherTest.php index 1ea06e2ad..94d410453 100644 --- a/tests/unit/utility/FeedFetcherTest.php +++ b/tests/unit/utility/FeedFetcherTest.php @@ -104,7 +104,7 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { $this->url = 'tests'; $this->permalink = 'http://permalink'; - $this->title = 'my title<'; + $this->title = 'my title&lt;'; $this->guid = 'hey guid here'; $this->body = 'let the bodies hit the floor <a href="test">test</a>'; $this->body2 = 'let the bodies hit the floor <a target="_blank" href="test">test</a>'; @@ -196,7 +196,7 @@ class FeedFetcherTest extends \OCA\AppFramework\Utility\TestUtility { $item->setStatus(0); $item->setUnread(); $item->setUrl($this->permalink); - $item->setTitle(html_entity_decode($this->title)); + $item->setTitle(html_entity_decode(html_entity_decode($this->title))); $item->setGuid($this->guid); $item->setGuidHash(md5($this->guid)); $item->setBody($this->body2); |