Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
acc902a0
Commit
acc902a0
authored
12 years ago
by
Björn Schießle
Browse files
Options
Downloads
Patches
Plain Diff
remove blacklist
parent
0a49fcf9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files_versions/lib/versions.php
+0
-13
0 additions, 13 deletions
apps/files_versions/lib/versions.php
with
0 additions
and
13 deletions
apps/files_versions/lib/versions.php
+
0
−
13
View file @
acc902a0
...
...
@@ -20,17 +20,13 @@ class Storage {
// config.php configuration:
// - files_versions
// - files_versionsfolder
// - files_versionsblacklist
// - files_versionsmaxfilesize
// - files_versionsinterval
// - files_versionmaxversions
//
// todo:
// - finish porting to OC_FilesystemView to enable network transparency
// - add transparent compression. first test if it´s worth it.
const
DEFAULTENABLED
=
true
;
const
DEFAULTBLACKLIST
=
'avi mp3 mpg mp4 ctmp'
;
const
DEFAULTMAXFILESIZE
=
10485760
;
// 10MB
const
DEFAULTMAXVERSIONS
=
50
;
...
...
@@ -79,15 +75,6 @@ class Storage {
return
false
;
}
// check filetype blacklist
$blacklist
=
explode
(
' '
,
\OCP\Config
::
getSystemValue
(
'files_versionsblacklist'
,
Storage
::
DEFAULTBLACKLIST
));
foreach
(
$blacklist
as
$bl
)
{
$parts
=
explode
(
'.'
,
$filename
);
$ext
=
end
(
$parts
);
if
(
strtolower
(
$ext
)
==
$bl
)
{
return
false
;
}
}
// we should have a source file to work with
if
(
!
$files_view
->
file_exists
(
$filename
))
{
return
false
;
...
...
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