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:
jrandom
2005-12-30 20:57:53 +00:00
committed by zzz
parent 5b1a6391f3
commit 8e87ae08fb
11 changed files with 47 additions and 25 deletions

View File

@@ -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;