Ticket #432 (closed enhancement: fixed)
support empty title RSS feeds
| Reported by: | salvatore@… | Owned by: | mdodoo |
|---|---|---|---|
| Priority: | low | Milestone: | Gregarius 0.6.0 |
| Component: | FEATURES | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Hi guys, I created a patch to support RSS feeds with empty title (TAG: <title></title>). Title is set with "UNTITLED" keyword and link.
FILE: util.php LINE: 461
BEFORE PATCH:
elseif (is_object($rss) && array_key_exists('title', $rss->channel)) {
$title = rss_real_escape_string($rss->channel['title']);
}
AFTER PATCH:
elseif (is_object($rss) && array_key_exists('title#', $rss->channel)) {
if (array_key_exists('title',$rss->channel)) {
$title = rss_real_escape_string($rss->channel['title']);
} else {
$title = "UNTITLED - ".rss_real_escape_string($rss->channel['link']);
}
}
Regards, Salvatore
Change History
Note: See
TracTickets for help on using
tickets.
