Skip to content
Snippets Groups Projects
Commit df58eea9 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13505 from owncloud/streamline-scanning-code

Streamline auth and CSRF check in scan.php
parents 767dd4bd 3f5d4d82
No related branches found
No related tags found
No related merge requests found
<?php
set_time_limit(0); //scanning can take ages
\OCP\JSON::checkLoggedIn();
\OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$force = (isset($_GET['force']) and ($_GET['force'] === 'true'));
$dir = isset($_GET['dir']) ? $_GET['dir'] : '';
if (isset($_GET['users'])) {
OC_JSON::checkAdminUser();
\OCP\JSON::checkAdminUser();
if ($_GET['users'] === 'all') {
$users = OC_User::getUsers();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment