File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1- 1.13.3
1+ 1.13.4
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ public function getParams() {
3737 * @return AssocArray params from the payload.
3838 */
3939 public function getPayloadParams () {
40+ $ payload = $ this ->getPayload ();
41+ $ decodedPayload = urldecode ($ payload );
4042 $ payloadParams = [];
41- parse_str ($ this -> getPayload () , $ payloadParams ); // Parse the payload into an AssocArray.
43+ parse_str ($ decodedPayload , $ payloadParams ); // Parse the payload into an AssocArray.
4244 $ payloadParams = json_decode (json_encode ($ payloadParams ), true );
4345 return $ payloadParams ;
4446 }
Original file line number Diff line number Diff line change 458458 return $ bridgedResponse ;
459459});
460460
461- //Add OPTIONS routes for all defined xAPI and api routes
462- foreach ( Route::getRoutes ()->getIterator () as $ route ){
463- if ( $ route ->getPrefix () === 'data/xAPI ' || $ route ->getPrefix () === 'api/v1 ' ){
464- Route::options ($ route ->getUri (), 'Controllers\API\Base@CORSOptions ' );
465- }
466- }
467-
468-
469461/*
470462|------------------------------------------------------------------
471463| For routes that don't exist
You can’t perform that action at this time.
0 commit comments