Fix for last commit.
authorcli
Fri, 21 Aug 2009 17:40:54 +0200
changeset 1991dc9acb03ed
parent 18 7e527fdf0fa8
child 20 6ae5e4f8329b
Fix for last commit.
org/sonews/daemon/command/PostCommand.java
     1.1 --- a/org/sonews/daemon/command/PostCommand.java	Fri Aug 21 17:33:15 2009 +0200
     1.2 +++ b/org/sonews/daemon/command/PostCommand.java	Fri Aug 21 17:40:54 2009 +0200
     1.3 @@ -252,7 +252,7 @@
     1.4      {
     1.5        // Circle check; note that Path can already contain the hostname here
     1.6        String host = Config.inst().get(Config.HOSTNAME, "localhost");
     1.7 -      if(article.getHeader(Headers.PATH)[0].contains(host + "!"))
     1.8 +      if(article.getHeader(Headers.PATH)[0].indexOf(host + "!", 1) > 0)
     1.9        {
    1.10          Log.get().info(article.getMessageID() + " skipped for host " + host);
    1.11          conn.println("441 I know this article already");