X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Ffile.ml;h=aafb1443b247035c5405b7cefe424c93cbd6e1d0;hb=e336401181f56f19ec18175d47462e7a5d5f07e2;hp=4345b11218ded440ef55095975a479fc14bbb5da;hpb=fffce48503e09a21f9c5846a0fc378e6180e50f3;p=cocanwiki.git diff --git a/scripts/file.ml b/scripts/file.ml index 4345b11..aafb144 100644 --- a/scripts/file.ml +++ b/scripts/file.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * 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";