1.2 RssHelper: fixing enclosure bug

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3876 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-11-18 22:58:29 +00:00
parent 7d63f4340c
commit 8b88865c29

View file

@ -202,13 +202,13 @@ class RssHelper extends XmlHelper {
}
if (!isset($val['type']) && function_exists('mime_content_type')) {
$val['type'] = mime_content_type(WWW_ROOT . $val['url']);
}
$val['url'] = Router::url($val['url'], true);
$attrib = $val;
}
}
$val['url'] = Router::url($val['url'], true);
$attrib = $val;
$val = null;
break;
}
}
if ($val != null) {
$val = h($val);
}