X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fsearch.ml;fp=scripts%2Fsearch.ml;h=852402ba2420c4b3888011251652999d627ab715;hb=1f125fd7a6794f352f30de71a3905d5356a07008;hp=3288ccfdac070bf81f54d053d462b9637370a96d;hpb=0ecd1f11790c77bbe15510a6b5a659fb255646bb;p=cocanwiki.git diff --git a/scripts/search.ml b/scripts/search.ml index 3288ccf..852402b 100644 --- a/scripts/search.ml +++ b/scripts/search.ml @@ -1,7 +1,7 @@ (* COCANWIKI scripts. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: search.ml,v 1.2 2004/09/07 13:40:10 rich Exp $ + * $Id: search.ml,v 1.3 2004/09/09 09:35:34 rich Exp $ *) open Apache @@ -15,7 +15,7 @@ open Cocanwiki let search : ('a -> 'b -> 'c, unit, string, string) format4 = "http://www.google.com/search?q=site:%s+%s" -let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ = +let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = let query = q#param "q" in let query = sprintf search (escape_url hostname) (escape_url query) in