Permalink
Browse files

Merge pull request #1 from szabgab/master

just a warning
  • Loading branch information...
2 parents 710ed82 + f9cc521 commit 4a25588c069825377d8a365ad39268afdaa0fc92 @davorg committed Feb 17, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/XML/Feed/Format/RSS.pm
@@ -203,9 +203,11 @@ sub link {
my $link = $entry->{entry}{link} ||
$entry->{entry}{permaLink} ||
$entry->{entry}{guid};
- $link =~ s/^\s+//;
- $link =~ s/\s+$//;
-
+ if (defined $link) {
+ $link =~ s/^\s+//;
+ $link =~ s/\s+$//;
+ }
+ return $link;
}
}

0 comments on commit 4a25588

Please sign in to comment.