--- projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/HostInit.java 2003/02/26 17:16:30 1.36 +++ projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/HostInit.java 2003/02/27 17:04:24 1.37 @@ -36,7 +36,7 @@ import java.util.*; * and a reference to a Filter to which it should pass data. * * @author $Author: tdb $ - * @version $Id: HostInit.java,v 1.36 2003/02/26 17:16:30 tdb Exp $ + * @version $Id: HostInit.java,v 1.37 2003/02/27 17:04:24 tdb Exp $ */ class HostInit extends Thread { @@ -45,7 +45,7 @@ class HostInit extends Thread { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.36 $"; + public final String REVISION = "$Revision: 1.37 $"; //---STATIC METHODS--- @@ -165,8 +165,17 @@ class HostInit extends Thread { // try for {lastModified} String lastModified = getInBound(); + long lastmod; + try { + lastmod = Long.parseLong(lastModified); + } + catch(NumberFormatException e) { + _socketOut.println("ERROR"); + throw new IOException("Last Modified invalid: " + e); + } + // check to see if a config update has happen - boolean newConfig = _configManager.isModified(filelist, Long.parseLong(lastModified)); + boolean newConfig = _configManager.isModified(filelist, lastmod); if(newConfig) { // new config ! _socketOut.println("EXPIRED");