From 90111b81116874aade2269a692e04bcf282d3695 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 28 Nov 2012 13:33:06 +0000 Subject: [PATCH] HTMLParser versiĆ³ per tots Apaches --- src/com/upc/pbe/upcnews/HTMLParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/upc/pbe/upcnews/HTMLParser.java b/src/com/upc/pbe/upcnews/HTMLParser.java index 419de40..1366b1e 100644 --- a/src/com/upc/pbe/upcnews/HTMLParser.java +++ b/src/com/upc/pbe/upcnews/HTMLParser.java @@ -19,7 +19,7 @@ public class HTMLParser { //Si hi ha un directori, tallem l'string per obtenir-ne el nom. for(int i = 0; i < split.length; i++){ if(split[i].contains("href") && split[i].contains("/\"")){ - directoris.add(split[i].substring((split[i].indexOf("href="))+2, (split[i].indexOf("/\"")))); + directoris.add(split[i].substring((split[i].indexOf("href="))+4, (split[i].indexOf("/\"")))); } } return directoris; -- libgit2 0.22.2