forked from I2P_Developers/i2p.i2p
2005-12-30 jrandom
* Small streaming lib bugfixes for the modified timeouts * Minor Syndie/Sucker RSS html fix * Small synchronization fix in I2PSnark (thanks fsm!)
This commit is contained in:
@@ -581,8 +581,10 @@ public class Sucker {
|
||||
|
||||
a=htmlTagLowerCase.indexOf("href=\"")+6;
|
||||
b=a+1;
|
||||
while(htmlTagLowerCase.charAt(b)!='\"')
|
||||
while ( (b < htmlTagLowerCase.length()) && (htmlTagLowerCase.charAt(b)!='\"') )
|
||||
b++;
|
||||
if (b >= htmlTagLowerCase.length())
|
||||
return null; // abort the b0rked tag
|
||||
String link=htmlTag.substring(a,b);
|
||||
if(link.indexOf("http")<0)
|
||||
link=baseUrl+"/"+link;
|
||||
|
Reference in New Issue
Block a user