diff --git a/src/View/RssView.php b/src/View/RssView.php index c8a26456..858e758f 100644 --- a/src/View/RssView.php +++ b/src/View/RssView.php @@ -310,7 +310,7 @@ protected function _prepareOutput($item) { } $val = $attrib; } elseif (is_array($val) && isset($val['url'])) { - if (!isset($val['@isPermalink']) || $val['@isPermalink'] === "true") { + if (!isset($val['@isPermalink']) || $val['@isPermalink'] !== 'false') { $val['url'] = Router::url($val['url'], true); } if ($bareKey === 'guid') { diff --git a/tests/TestCase/View/RssViewTest.php b/tests/TestCase/View/RssViewTest.php index 1fe8cf0e..8c0566ec 100644 --- a/tests/TestCase/View/RssViewTest.php +++ b/tests/TestCase/View/RssViewTest.php @@ -696,4 +696,5 @@ public function testIsPermalink() { RSS; $this->assertTextEquals($expected, $result); } + }