(* 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
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";