forked from Archives/Athou_commafeed
remove potential leading invalid characters
This commit is contained in:
@@ -41,7 +41,7 @@ public class OPMLImporter {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
@Asynchronous
|
@Asynchronous
|
||||||
public void importOpml(User user, String xml) {
|
public void importOpml(User user, String xml) {
|
||||||
|
xml = xml.substring(xml.indexOf('<'));
|
||||||
WireFeedInput input = new WireFeedInput();
|
WireFeedInput input = new WireFeedInput();
|
||||||
try {
|
try {
|
||||||
Opml feed = (Opml) input.build(new StringReader(xml));
|
Opml feed = (Opml) input.build(new StringReader(xml));
|
||||||
|
|||||||
Reference in New Issue
Block a user