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
|
@ -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 New Issue