Le mercredi 9 juin 2010 12:16:45, Romain Beauxis a écrit :
> There could indeed be a bug here. Could you provide more informations in
> order  to reproduce the issue here ?

I have been able to find the issue.

The problem is related to the parsing of the HTTP get requests in harbor.

Please find a patch attached that fixes the issue in 0.9.2


Romain
Index: tools/harbor.ml
===================================================================
--- tools/harbor.ml	(révision 7101)
+++ tools/harbor.ml	(copie de travail)
@@ -391,7 +391,15 @@
     | Not_found -> uri,""
   in
   log#f 3 "GET request on %s." base_uri ;
-  let args = Http.args_split (Http.url_decode args) in
+  let args = Http.args_split args in
+  (* decode args *)
+  let args = 
+    let ret = Hashtbl.create (Hashtbl.length args) in
+    let g = Http.url_decode in
+    let f x y = Hashtbl.add ret (g x) (g y) in 
+    Hashtbl.iter f args ;
+    ret
+  in
   (* Filter out password *)
   let log_args = 
     if conf_pass_verbose#get then
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to