On Wed, Mar 12, 2008 at 6:02 AM, westor <[EMAIL PROTECTED]> wrote:
>
>  The hint to test with FF 3 beta was good. This test did not solve my problem
>  with RPC-JSON-Request but it helped to find out a must have change in
>  index.php in backend file. (Hi Derrell ;-) )
>  I analyzed the header, sent from FF 3. The header is not exact
>  "application/json" (like in IE and in FF 2)
>  it is
>  "application/json; charset=UTF-8"
>  so the statement
>  switch($_SERVER["CONTENT_TYPE"])
>  is not working correct, and every RPC-Request will fail.
>  This should be fixed soon.

Thanks for the report.  Would you please try this patch:

diff --git a/qooxdoo/backend/php/services/index.php
b/qooxdoo/backend/php/services/index.php
index 7f18ad5..c365e14 100644
--- a/qooxdoo/backend/php/services/index.php
+++ b/qooxdoo/backend/php/services/index.php
@@ -490,7 +490,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST")
     /*
      * For POST data, the only acceptable content type is application/json.
      */
-    switch($_SERVER["CONTENT_TYPE"])
+    switch(substr($_SERVER["CONTENT_TYPE"],
+                  0,
+                  strcspn($_SERVER["CONTENT_TYPE"], ";"))
     {
     case "application/json":
         /* We found literal POSTed json-rpc data (we hope) */


I don't have FF3 set up right now, so if you can confirm that this
works with FF3 (and doesn't seem to break FF2/IE) I'll apply it for
you.

Cheers,

Derrell

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to