Skip to content

Commit

Permalink
Fixed broken RSS links
Browse files Browse the repository at this point in the history
see #19
  • Loading branch information
hughht5 committed Sep 19, 2012
1 parent d71fcfb commit ca4ed28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/glog.js
Expand Up @@ -263,7 +263,11 @@ Glog.prototype.render_rss = function(options, articles, cb) {
}),
len = articles.length, i;

for(i=0;i<len;i++) {
for(i=0;i<len;i++) {
//encode the URL in case of special chars
var xurl = '/'+encodeURIComponent(articles[i].url);
xurl = xurl.replace('%2F',"/").replace('%2F',"/"); //but dont encode the slashes in the date!

feed.item({
title : articles[i].title,
description : articles[i].body,
Expand Down

0 comments on commit ca4ed28

Please sign in to comment.