2005-10-20 dust
* Fix bug in ircclient that prevented it to use its own dest (i.e. was always shared. (thx for info Ragnarok) * Fix crash in Sucker with some bad html.
This commit is contained in:
@ -620,11 +620,11 @@ public class I2PTunnel implements Logging, EventDispatcher {
|
||||
}
|
||||
|
||||
boolean isShared = true;
|
||||
if (args.length > 1) {
|
||||
if (args.length > 2) {
|
||||
if ("true".equalsIgnoreCase(args[2].trim())) {
|
||||
isShared = true;
|
||||
} else if ("false".equalsIgnoreCase(args[1].trim())) {
|
||||
_log.warn("args[1] == [" + args[1] + "] and rejected explicitly");
|
||||
} else if ("false".equalsIgnoreCase(args[2].trim())) {
|
||||
_log.warn("args[2] == [" + args[2] + "] and rejected explicitly");
|
||||
isShared = false;
|
||||
} else {
|
||||
// isShared not specified, default to true
|
||||
|
@ -340,6 +340,11 @@ public class Sucker {
|
||||
//System.out.println("html: "+html.substring(i));
|
||||
|
||||
int tagLen = findTagLen(html.substring(i));
|
||||
if(tagLen<=0)
|
||||
{
|
||||
System.out.println("Bad html? ("+html+")");
|
||||
break;
|
||||
}
|
||||
//
|
||||
String htmlTag = html.substring(i,i+tagLen);
|
||||
|
||||
@ -477,12 +482,12 @@ public class Sucker {
|
||||
if(s.charAt(i)=='"')
|
||||
{
|
||||
i++;
|
||||
while(s.charAt(i)!='"')
|
||||
while(i<s.length() && s.charAt(i)!='"')
|
||||
i++;
|
||||
}
|
||||
}
|
||||
System.out.println("WTF");
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
private boolean existsInHistory(String messageId) {
|
||||
|
Reference in New Issue
Block a user