Escape App ID

While all callers do this as well this prevents a misuse of the API by mistake.
This commit is contained in:
Lukas Reschke 2016-03-17 10:58:34 +01:00
parent 828cb08d49
commit 979a3ff830
1 changed files with 4 additions and 0 deletions

View File

@ -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;