Asynchronous updates.
[cocanwiki.git] / scripts / file.ml
index 4345b11..aafb144 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: file.ml,v 1.12 2004/11/01 16:24:32 rich Exp $
+ * $Id: file.ml,v 1.13 2004/12/01 13:55:55 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} _ =
       try Table.get (Request.headers_in r) "Referer" with Not_found -> "" in
     let ok =
       try String.find referer hostname; true
-      with String.Invalid_string -> false in
+      with Invalid_string -> false in
 
     if not ok then (
       prerr_endline "file.ml: bandwidth theft avoided";