Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
df58eea9
Commit
df58eea9
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Plain Diff
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
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files/ajax/scan.php
+5
-1
5 additions, 1 deletion
apps/files/ajax/scan.php
with
5 additions
and
1 deletion
apps/files/ajax/scan.php
+
5
−
1
View file @
df58eea9
<?php
<?php
set_time_limit
(
0
);
//scanning can take ages
set_time_limit
(
0
);
//scanning can take ages
\OCP\JSON
::
checkLoggedIn
();
\OCP\JSON
::
callCheck
();
\OC
::
$server
->
getSession
()
->
close
();
\OC
::
$server
->
getSession
()
->
close
();
$force
=
(
isset
(
$_GET
[
'force'
])
and
(
$_GET
[
'force'
]
===
'true'
));
$force
=
(
isset
(
$_GET
[
'force'
])
and
(
$_GET
[
'force'
]
===
'true'
));
$dir
=
isset
(
$_GET
[
'dir'
])
?
$_GET
[
'dir'
]
:
''
;
$dir
=
isset
(
$_GET
[
'dir'
])
?
$_GET
[
'dir'
]
:
''
;
if
(
isset
(
$_GET
[
'users'
]))
{
if
(
isset
(
$_GET
[
'users'
]))
{
OC
_
JSON
::
checkAdminUser
();
\
OC
P\
JSON
::
checkAdminUser
();
if
(
$_GET
[
'users'
]
===
'all'
)
{
if
(
$_GET
[
'users'
]
===
'all'
)
{
$users
=
OC_User
::
getUsers
();
$users
=
OC_User
::
getUsers
();
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment