X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fsend_feedback.ml;h=682b8f6569a281d0d76b7883cbb2b0d2fc390c86;hb=ec0b2fe822bac60e194044fdb7092156705e4595;hp=3dc1a1e88b375443832e9087c26b864350664af5;hpb=ce5309fcde2bd29b042efc5868e7721a951dd846;p=cocanwiki.git diff --git a/scripts/send_feedback.ml b/scripts/send_feedback.ml index 3dc1a1e..682b8f6 100644 --- a/scripts/send_feedback.ml +++ b/scripts/send_feedback.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: send_feedback.ml,v 1.1 2004/09/20 17:18:26 rich Exp $ + * $Id: send_feedback.ml,v 1.3 2004/10/04 15:19:56 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 @@ -36,7 +36,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} user = if q#param_true "cancel" then ( (* Request cancelled. *) q#redirect ("http://" ^ hostname); - raise CgiExit + return () ); (* Get the feedback email for this host. *) @@ -89,4 +89,4 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} user = q "An email has been sent to the site administrators." let () = - register_script run + register_script ~restrict:[CanView] run