Skip to content
Snippets Groups Projects
Commit 66a17cac authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #11265 from owncloud/fix-11264

Check for blacklisted characters
parents e5793e8e aeb516c3
Branches
No related tags found
No related merge requests found
......@@ -24,6 +24,12 @@ $owner = $_POST['owner'];
$name = $_POST['name'];
$password = $_POST['password'];
// Check for invalid name
if(!\OCP\Util::isValidFileName($name)) {
\OCP\JSON::error(array('data' => array('message' => $l->t('The mountpoint name contains invalid characters.'))));
exit();
}
$externalManager = new \OCA\Files_Sharing\External\Manager(
\OC::$server->getDatabaseConnection(),
\OC\Files\Filesystem::getMountManager(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment