Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Bug #14137 auto_server get parameter are encoded
Submitted: 2008-06-13 08:10 UTC
From: mahermanns Assigned: jeichorn
Status: Closed Package: HTML_AJAX (version 0.5.5)
PHP Version: 5.2.3 OS: XP
Roadmaps: 0.5.6    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 + 48 = ?

 
 [2008-06-13 08:10 UTC] mahermanns (Marcel Hermanns)
Description: ------------ Hi, using your auto_server example fails if you add some GET parameters, '&' will be encoded by '&' and the request won't invoke the expected behavour on serverside in general. That is, the $_GET array will be something like Array { [test1] => 1, [amp;test2] => 2 } when the remote functions of HelloWorld will be called. Patch: remove the htmlentities() call in Server.php in line 197 Test script: --------------- URL: http://blog.joshuaeichorn.com/examples/HTML_AJAX-HelloWorld/auto_server.php?client=all&stub=helloworld&test1=1&test2=2 Expected result: ---------------- // Client stub for the HelloWorld PHP Class function HelloWorld(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'HelloWorld'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/mahermanns/Nurse/Nurse/ajax/auto_server.php?test1=1&test2=2','JSON'); } ... Actual result: -------------- // Client stub for the HelloWorld PHP Class function HelloWorld(callback) { mode = 'sync'; if (callback) { mode = 'async'; } this.className = 'HelloWorld'; this.dispatcher = new HTML_AJAX_Dispatcher(this.className,mode,callback,'/mahermanns/Nurse/Nurse/ajax/auto_server.php?test1=1&test2=2','JSON'); } ...

Comments

 [2008-06-16 17:44 UTC] jeichorn (Joshua Eichorn)
Fixed in svn 0.5.6 will be released soon