fix relative url detection when entry link starts with a blank space or blank line

This commit is contained in:
Athou
2013-06-22 10:29:26 +02:00
parent 91f6a43b2f
commit 2f32a01947

View File

@@ -340,6 +340,7 @@ public class FeedUtils {
}
public static String toAbsoluteUrl(String url, String baseUrl) {
url = StringUtils.trimToNull(StringUtils.normalizeSpace(url));
if (baseUrl == null || url == null || url.startsWith("http")) {
return url;
}