SCORM - LMS communication breaks on user input
I'm still using Dokeos, but I checked the Camilio source and it has the same issue:
Working in Dokeos 126.96.36.199 and SCORM, I found that certain user-input can break the ajax communication between the browser and Dokeos.
Found that the ajax calls are done using GET requests. When a user eg. uses the # (hash) character, in GET this is an anchor and everything after the # is ignored.
I changed all the GETS to POSTS and now it works fine. See attached diff.
Updated by Yannick Warnier over 9 years ago
- Due date set to 12/04/2010
- Status changed from New to Assigned
- Assignee set to Julio Montoya
- Target version set to 1.8.7 beta
- Estimated time set to 0.50 h
- SCRUM pts - complexity changed from ? to 2
I'm not opposed to switching to POST, but I4m suspicious about the first change in scorm_api.php. Not sure this one will work (unless this section has in fact been commented out and is not used anymore).
Julio, can you check this one (that the POST in the first change in scorm_api.php in the diff file works) and if it works, apply it? If it doesn't convert that URL string building into different "params".
Updated by Anonymous over 9 years ago
- Status changed from Assigned to Needs more info
- Assignee changed from Julio Montoya to Anonymous
Why use POST or GET when we could simply have both ? See http://code.google.com/p/chamilo/source/detail?r=12cb28f13e1122a12fe23fd0ce714da085f3b9cc&repo=classic
This should fix the problem, but please give me some feedback: Yannick, if you can test it to make sure it's ok...