remove potential leading invalid characters

This commit is contained in:
Athou
2013-07-21 12:16:10 +02:00
parent 9ae9238244
commit 71d9d9aeea

View File

@@ -41,7 +41,7 @@ public class OPMLImporter {
@SuppressWarnings("unchecked")
@Asynchronous
public void importOpml(User user, String xml) {
xml = xml.substring(xml.indexOf('<'));
WireFeedInput input = new WireFeedInput();
try {
Opml feed = (Opml) input.build(new StringReader(xml));