diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-09 15:03:47 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-09 15:10:40 +0100 |
commit | 9dddcae9ca3dcf872893e36e2f478ebecafdc6e2 (patch) | |
tree | 161ce14d97ef95699266ead95da5f5f2bd97fb68 /settings/ajax/enableapp.php | |
parent | 12bdc6ddb6021f772e8e6364eee89f1406ee3d7d (diff) | |
download | nextcloud-server-9dddcae9ca3dcf872893e36e2f478ebecafdc6e2.tar.gz nextcloud-server-9dddcae9ca3dcf872893e36e2f478ebecafdc6e2.zip |
Remove invalid characters from app id to prevent loading of invalid resources
Diffstat (limited to 'settings/ajax/enableapp.php')
-rw-r--r-- | settings/ajax/enableapp.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index 18202dc39e9..ab84aee5166 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -3,7 +3,7 @@ OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); -$appid = OC_App::enable($_POST['appid']); +$appid = OC_App::enable(OC_App::cleanAppId($_POST['appid'])); if($appid !== false) { OC_JSON::success(array('data' => array('appid' => $appid))); } else { |