mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixed 'convertEntities' to links in RSS. Fixes #959
This commit is contained in:
parent
712ca6d5b5
commit
f2f2987743
1 changed files with 7 additions and 5 deletions
|
@ -208,6 +208,13 @@ class RssHelper extends XmlHelper {
|
|||
|
||||
foreach ($elements as $key => $val) {
|
||||
$attrib = array();
|
||||
|
||||
$escape = true;
|
||||
if (is_array($val) && isset($val['convertEntities'])) {
|
||||
$escape = $val['convertEntities'];
|
||||
unset($val['convertEntities']);
|
||||
}
|
||||
|
||||
switch ($key) {
|
||||
case 'pubDate' :
|
||||
$val = $this->time($val);
|
||||
|
@ -261,11 +268,6 @@ class RssHelper extends XmlHelper {
|
|||
$val = null;
|
||||
break;
|
||||
}
|
||||
$escape = true;
|
||||
if (is_array($val) && isset($val['convertEntities'])) {
|
||||
$escape = $val['convertEntities'];
|
||||
unset($val['convertEntities']);
|
||||
}
|
||||
if (!is_null($val) && $escape) {
|
||||
$val = h($val);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue