mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Escape App ID
While all callers do this as well this prevents a misuse of the API by mistake.
This commit is contained in:
parent
828cb08d49
commit
979a3ff830
1 changed files with 4 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ class Router implements IRouter {
|
|||
* @param null|string $app
|
||||
*/
|
||||
public function loadRoutes($app = null) {
|
||||
if(is_string($app)) {
|
||||
$app = \OC_App::cleanAppId($app);
|
||||
}
|
||||
|
||||
$requestedApp = $app;
|
||||
if ($this->loaded) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue