X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit_contact.ml;h=18b4a5cd9e841e1390eef5c67d20b4b76e73d1ba;hb=6b0b6830a2e784eee99dcd1b1a3cb8b44e27c765;hp=88077e6b59c4e91e01d987e6017fe40a5fbbcfdf;hpb=3da6ded17ea2cca64328e5f3ea8903cd15103bc2;p=cocanwiki.git diff --git a/scripts/edit_contact.ml b/scripts/edit_contact.ml index 88077e6..18b4a5c 100644 --- a/scripts/edit_contact.ml +++ b/scripts/edit_contact.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: edit_contact.ml,v 1.1 2004/09/21 18:24:15 rich Exp $ + * $Id: edit_contact.ml,v 1.2 2004/09/23 11:56:47 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 @@ -45,20 +45,20 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = if name = "" then ( error ~back_button:true ~title:"Name field missing" q "You must name your contact form."; - raise CgiExit + return () ); if subject = "" then ( error ~back_button:true ~title:"Subject line missing" q "You must give a subject line, which appears on contact emails."; - raise CgiExit + return () ); if emails = [] then ( error ~back_button:true ~title:"No email addresses" q ("There are no email addresses listed for this contact form. You " ^ "must list at least one valid email address."); - raise CgiExit + return () ); (* Need to verify that the contact belongs to the host. *)