Skip to content

Commit

Permalink
Correctly fix return of Connector and Loader in non-cors mode (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Jun 4, 2023
1 parent a5b91c5 commit 37c3db0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Connector/ElFinderConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function run($queryParameters = null)
if (null === $queryParameters) {
$queryParameters = $_GET;
}
exit(json_encode($this->execute($queryParameters)));
return $this->execute($queryParameters);
}

public function execute($queryParameters)
Expand Down
2 changes: 1 addition & 1 deletion src/Loader/ElFinderLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function load(Request $request)
if ($this->config['corsSupport']) {
return $connector->execute($request->query->all());
} else {
$connector->run($request->query->all());
return $connector->run($request->query->all());
}
}

Expand Down

0 comments on commit 37c3db0

Please sign in to comment.