Skip to content

Commit 980d434

Browse files
authored
Merge pull request #852 from LearningLocker/develop
v1.13.4
2 parents afad68f + 707028d commit 980d434

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.13.3
1+
1.13.4

app/locker/request/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

app/routes.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,6 @@
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

0 commit comments

Comments
 (0)